Added option to restore app state on start

This commit is contained in:
M66B
2022-06-24 12:15:41 +02:00
parent 758d9aa47a
commit 6381c85fdd
6 changed files with 58 additions and 5 deletions

View File

@@ -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);
}