[Bugfix] Fix logout bug

On a logout the login-key has not been removed from the shared preferences due to a typo ("loginkey" instead of "loginKey"). Now that the typo is fixed the login key is no longer kept stored after logouts which resolves the bug mentioned in issue #16
This commit is contained in:
loewenzahm 2022-02-07 22:24:29 +01:00
parent 4ed7f5d54a
commit 0df2b02ad5

View file

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