mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-31 22:26:06 +02:00
Restart instead of recreate after accepting EULA
This commit is contained in:
@@ -461,8 +461,13 @@ public class ActivityMain extends ActivityBase implements FragmentManager.OnBack
|
||||
|
||||
@Override
|
||||
public void onSharedPreferenceChanged(SharedPreferences prefs, String key) {
|
||||
if ("eula".equals(key))
|
||||
if (prefs.getBoolean(key, false))
|
||||
recreate();
|
||||
if ("eula".equals(key)) {
|
||||
boolean eula = prefs.getBoolean(key, false);
|
||||
if (eula) {
|
||||
// recreate is done without animation
|
||||
finish();
|
||||
startActivity(getIntent());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user