8000 reimplemented getWritableDatabase to use public constructor · boxer/android-database-sqlcipher@77bfcbf · GitHub
[go: up one dir, main page]

Skip to content

Commit 77bfcbf

Browse files
committed
reimplemented getWritableDatabase to use public constructor
1 parent 09a1c19 commit 77bfcbf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/info/guardianproject/database/sqlcipher/SQLiteOpenHelper.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,9 @@ public synchronized SQLiteDatabase getWritableDatabase() {
9696
db = SQLiteDatabase.create(null);
9797

9898
} else {
99-
99+
String path = mContext.getDatabasePath(mName).getPath();
100+
db = SQLiteDatabase.openDatabase(path, mFactory, SQLiteDatabase.OPEN_READWRITE);
101+
100102
//db = mContext.openOrCreateDatabase(mName, 0, mFactory);
101103

102104
}

0 commit comments

Comments
 (0)
0