8000 Merge branch 'litehelpers-cb-api-23-fix' into android-n-preview · dw3/android-database-sqlcipher@b7f95fe · GitHub
[go: up one dir, main page]

Skip to content

Commit b7f95fe

Browse files
Merge branch 'litehelpers-cb-api-23-fix' into android-n-preview
2 parents 7ebfba2 + 6c1cd06 commit b7f95fe

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)
0