mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-29 13:24:52 +02:00
Added debug option to configure sqlite cache size
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user