8000 Merge branch 'upstream' · ETS-Android4/sqlcipher-android@e57448b · GitHub
[go: up one dir, main page]

Skip to content

Commit e57448b

Browse files
Merge branch 'upstream'
2 parents fae2c3e + 37bb6b2 commit e57448b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sqlcipher/src/main/java/net/zetetic/database/sqlcipher/SQLiteOpenHelper.java

Lines changed: 4 additions & 0 deletions
47A2
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,10 @@ private SQLiteDatabase getDatabaseLocked(boolean writable) {
324324
} else if (mName == null) {
325325
db = SQLiteDatabase.create(null);
326326
} else {
327+
String path = mName;
328+
if (!path.startsWith("file:")) {
329+
path = mContext.getDatabasePath(path).getPath();
330+
}
327331
try {
328332
final File filePath = mContext.getDatabasePath(mName);
329333
final String path = filePath.getPath();

0 commit comments

Comments
 (0)
0