1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-27 02:07:12 +00:00

Prevent restart

This commit is contained in:
M66B 2020-12-09 18:17:19 +01:00
parent 84c6e4e4ac
commit d39f70867f
2 changed files with 7 additions and 2 deletions

View file

@ -965,8 +965,12 @@ public class ActivitySetup extends ActivityBase implements FragmentManager.OnBac
Build.VERSION.SDK_INT >= Build.VERSION_CODES.O)
continue;
if ("language".equals(key))
continue; // language might not be supported
// Prevent restart
if ("secure".equals(key) ||
"shortcuts".equals(key) ||
"language".equals(key) ||
"query_threads".equals(key))
continue;
if (key != null && key.startsWith("widget."))
continue;

View file

@ -189,6 +189,7 @@ public class ApplicationEx extends Application implements SharedPreferences.OnSh
case "shortcuts": // misc
case "language": // misc
case "query_threads": // misc
// Should be excluded for import
restart();
break;
}