Skip to content

Commit 6c1cd06

Browse files
author
Christopher J. Brody
committed
Support AbstractCursor.setExtras/AbstractCursor.getExtras according to API 23
1 parent 7ebfba2 commit 6c1cd06

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/net/sqlcipher/AbstractCursor.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ public abstract class AbstractCursor implements android.database.CrossProcessCur
4242
DataSetObservable mDataSetObservable = new DataSetObservable();
4343
ContentObservable mContentObservable = new ContentObservable();
4444

45+
private Bundle mExtras = Bundle.EMPTY;
46+
4547
/* -------------------------------------------------------- */
4648
/* These need to be implemented by subclasses */
4749
abstract public int getCount();
@@ -502,8 +504,12 @@ public boolean getWantsAllOnMoveCalls() {
502504
return false;
503505
}
504506

507+
public void setExtras(Bundle extras) {
508+
mExtras = (extras == null) ? Bundle.EMPTY : extras;
509+
}
510+
505511
public Bundle getExtras() {
506-
return Bundle.EMPTY;
512+
return mExtras;
507513
}
508514

509515
public Bundle respond(Bundle extras) {

0 commit comments

Comments
 (0)