From 5e94c5ddd0d812b5573a390f0d9fd43325e3a62c Mon Sep 17 00:00:00 2001 From: Alexey Kulish Date: Thu, 15 Sep 2016 16:54:56 +0300 Subject: [PATCH] Revert SQLiteAPIImpl changes --- OsmAnd/src/net/osmand/plus/api/SQLiteAPIImpl.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/api/SQLiteAPIImpl.java b/OsmAnd/src/net/osmand/plus/api/SQLiteAPIImpl.java index 431b3455f1..3da132800b 100644 --- a/OsmAnd/src/net/osmand/plus/api/SQLiteAPIImpl.java +++ b/OsmAnd/src/net/osmand/plus/api/SQLiteAPIImpl.java @@ -14,9 +14,8 @@ public class SQLiteAPIImpl implements SQLiteAPI { @Override public SQLiteConnection getOrCreateDatabase(String name, boolean readOnly) { - android.database.sqlite.SQLiteDatabase db = SQLiteDatabase.openDatabase(app.getDatabasePath(name).getAbsolutePath(), null, - (readOnly? SQLiteDatabase.OPEN_READONLY : (SQLiteDatabase.OPEN_READWRITE | SQLiteDatabase.ENABLE_WRITE_AHEAD_LOGGING)) - | SQLiteDatabase.CREATE_IF_NECESSARY); + android.database.sqlite.SQLiteDatabase db = app.openOrCreateDatabase(name, + readOnly ? SQLiteDatabase.OPEN_READONLY : (SQLiteDatabase.OPEN_READWRITE | SQLiteDatabase.ENABLE_WRITE_AHEAD_LOGGING), null); if(db == null) { return null; }