Skip to content

Commit 001d34b

Browse files
Move map of SQLiteCloseable to allow preKey/postKey operations
1 parent d997851 commit 001d34b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/net/sqlcipher/database/SQLiteDatabase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1948,6 +1948,7 @@ public SQLiteDatabase(String path, String password, CursorFactory factory, int f
19481948
mSlowQueryThreshold = -1;//SystemProperties.getInt(LOG_SLOW_QUERIES_PROPERTY, -1);
19491949
mStackTrace = new DatabaseObjectNotClosedException().fillInStackTrace();
19501950
mFactory = factory;
1951+
mPrograms = new WeakHashMap<SQLiteClosable,Object>();
19511952
dbopen(mPath, mFlags);
19521953

19531954
if(databaseHook != null){
@@ -1963,7 +1964,6 @@ public SQLiteDatabase(String path, String password, CursorFactory factory, int f
19631964
if (SQLiteDebug.DEBUG_SQL_CACHE) {
19641965
mTimeOpened = getTime();
19651966
}
1966-
mPrograms = new WeakHashMap<SQLiteClosable,Object>();
19671967
try {
19681968
setLocale(Locale.getDefault());
19691969
} catch (RuntimeException e) {

0 commit comments

Comments
 (0)