Prevent restart

pull/190/head
M66B 5 years ago
parent 84c6e4e4ac
commit d39f70867f

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

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

Loading…
Cancel
Save