mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-27 02:07:12 +00:00
Prevent restart
This commit is contained in:
parent
84c6e4e4ac
commit
d39f70867f
2 changed files with 7 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue