mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-27 11:25:13 +01:00
Restart instead of recreate after accepting EULA
This commit is contained in:
@@ -164,6 +164,11 @@ public class ActivitySetup extends ActivityBase implements FragmentManager.OnBac
|
||||
menus.add(new NavMenuItem(R.drawable.twotone_close_24, R.string.title_setup_close, new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
if (BuildConfig.DEBUG) {
|
||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(ActivitySetup.this);
|
||||
prefs.edit().remove("eula").apply();
|
||||
}
|
||||
|
||||
onMenuClose();
|
||||
}
|
||||
}).setColor(colorWarning).setSeparated());
|
||||
|
||||
Reference in New Issue
Block a user