Merge pull request #31 from loewenzahm/master

[Bugfix] Fix logout bug
This commit is contained in:
h0chi 2022-02-07 22:33:58 +01:00 committed by GitHub
commit 5a277dd869

View file

@ -81,7 +81,7 @@ public class MainActivity extends AppCompatActivity implements AsyncTaskCallback
if (id == R.id.action_logout) { if (id == R.id.action_logout) {
SharedPreferences sharedPref = getSharedPreferences("persistence", MODE_PRIVATE); SharedPreferences sharedPref = getSharedPreferences("persistence", MODE_PRIVATE);
SharedPreferences.Editor editor = sharedPref.edit(); SharedPreferences.Editor editor = sharedPref.edit();
editor.remove("loginkey"); editor.remove("loginKey");
editor.apply(); editor.apply();
Intent intent = new Intent(this, LoginActivity.class); Intent intent = new Intent(this, LoginActivity.class);
startActivity(intent); startActivity(intent);