8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fae2c3e + 37bb6b2 commit e57448bCopy full SHA for e57448b
sqlcipher/src/main/java/net/zetetic/database/sqlcipher/SQLiteOpenHelper.java
@@ -324,6 +324,10 @@ private SQLiteDatabase getDatabaseLocked(boolean writable) {
324
} else if (mName == null) {
325
db = SQLiteDatabase.create(null);
326
} else {
327
+ String path = mName;
328
+ if (!path.startsWith("file:")) {
329
+ path = mContext.getDatabasePath(path).getPath();
330
+ }
331
try {
332
final File filePath = mContext.getDatabasePath(mName);
333
final String path = filePath.getPath();
0 commit comments