File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
debug-db-base/src/main/java/com/amitshekhar/server Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 2323import android .content .res .AssetManager ;
2424import android .net .Uri ;
2525import android .text .TextUtils ;
26- import android .util .Pair ;
2726
2827import androidx .sqlite .db .SupportSQLiteDatabase ;
2928
@@ -306,7 +305,11 @@ private String getTableListResponse(String route) {
306305 mSelectedDatabase = Constants .APP_SHARED_PREFERENCES ;
307306 } else {
308307 try {
309- openDatabase (database , password );
308+ if (Utils .isDbEncrypted (database , mDatabaseFiles )) {
309+ openDatabase (database , password );
310+ } else {
311+ openDatabase (database , null );
312+ }
310313 response = DatabaseHelper .getAllTableName (sqLiteDB );
311314 } catch (Exception e ) {
312315 response = new Response ();
You can’t perform that action at this time.
0 commit comments