Skip to content

Commit 69f789a

Browse files
committed
CursorToBulkCursorAdapter.close must call mCursor.close instead of mCursor.deactivate. This prevent us to call Cursor.close on cross process ContentProvider and may cause a database leak problem.
Change-Id: I126457c1b709e853727f460095b518b0420aa34f
1 parent 0d3b202 commit 69f789a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

core/java/android/database/CursorToBulkCursorAdaptor.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,7 @@ public void deactivate() {
143143

144144
public void close() {
145145
maybeUnregisterObserverProxy();
146-
mCursor.deactivate();
147-
146+
mCursor.close();
148147
}
149148

150149
public int requery(IContentObserver observer, CursorWindow window) {

0 commit comments

Comments
 (0)