File tree Expand file tree Collapse file tree 1 file changed +12
-9
lines changed
sqlcipher/src/androidTest/java/net/zetetic/database/database_cts Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Original file line number Diff line number Diff line change 2424import android .database .CursorWrapper ;
2525import android .database .DataSetObserver ;
2626import android .database .StaleDataException ;
27- import net .zetetic .database .sqlcipher .SQLiteDatabase ;
2827import android .os .Bundle ;
2928import android .os .Handler ;
3029import android .test .AndroidTestCase ;
3130
31+ import net .zetetic .database .sqlcipher .SQLiteDatabase ;
32+
3233import java .io .File ;
3334import java .util .Arrays ;
3435
@@ -439,14 +440,16 @@ public void testContentObserverOperations() throws IllegalStateException {
439440 }
440441
441442 public void testSetExtras () {
442- Cursor cursor = getCursor ();
443- CursorWrapper cursorWrapper = new CursorWrapper (cursor );
444- try {
445- Bundle b = new Bundle ();
446- cursorWrapper .setExtras (b );
447- assertSame (b , cursor .getExtras ());
448- } finally {
449- cursorWrapper .close ();
443+ if (android .os .Build .VERSION .SDK_INT >= android .os .Build .VERSION_CODES .M ){
444+ Cursor cursor = getCursor ();
445+ CursorWrapper cursorWrapper = new CursorWrapper (cursor );
446+ try {
447+ Bundle b = new Bundle ();
448+ cursorWrapper .setExtras (b );
449+ assertSame (b , cursor .getExtras ());
450+ } finally {
451+ cursorWrapper .close ();
452+ }
450453 }
451454 }
452455
You can’t perform that action at this time.
0 commit comments