mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-27 19:35:10 +01:00
Added option to restore app state on start
This commit is contained in:
@@ -282,6 +282,8 @@ abstract class ActivityBase extends AppCompatActivity implements SharedPreferenc
|
||||
super.onPause();
|
||||
|
||||
visible = false;
|
||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
|
||||
prefs.edit().putString("last_activity", this.getClass().getName()).apply();
|
||||
|
||||
checkAuthentication(false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user