[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:
parent
4ed7f5d54a
commit
0df2b02ad5
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue