We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a25949a commit 8be5a8bCopy full SHA for 8be5a8b
debug-db-base/src/main/java/com/amitshekhar/server/RequestHandler.java
@@ -23,7 +23,6 @@
23
import android.content.res.AssetManager;
24
import android.net.Uri;
25
import android.text.TextUtils;
26
-import android.util.Pair;
27
28
import androidx.sqlite.db.SupportSQLiteDatabase;
29
@@ -306,7 +305,11 @@ private String getTableListResponse(String route) {
306
305
mSelectedDatabase = Constants.APP_SHARED_PREFERENCES;
307
} else {
308
try {
309
- openDatabase(database, password);
+ if (Utils.isDbEncrypted(database, mDatabaseFiles)) {
+ openDatabase(database, password);
310
+ } else {
311
+ openDatabase(database, null);
312
+ }
313
response = DatabaseHelper.getAllTableName(sqLiteDB);
314
} catch (Exception e) {
315
response = new Response();
0 commit comments