Added debug option to configure sqlite cache size

This commit is contained in:
M66B
2021-09-05 18:33:16 +02:00
parent c4c9499211
commit aaf4187631
5 changed files with 99 additions and 14 deletions

View File

@@ -245,7 +245,7 @@ public class ApplicationEx extends Application
case "query_threads": // misc
case "wal": // misc
// Should be excluded for import
restart();
restart(this);
break;
case "debug":
case "log_level":
@@ -254,10 +254,10 @@ public class ApplicationEx extends Application
}
}
void restart() {
Intent intent = new Intent(this, ActivityMain.class);
static void restart(Context context) {
Intent intent = new Intent(context, ActivityMain.class);
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);
startActivity(intent);
context.startActivity(intent);
Runtime.getRuntime().exit(0);
}