diff --git a/app/src/main/java/com/example/saar/MainActivity.java b/app/src/main/java/com/example/saar/MainActivity.java index 8588da2..4bf3446 100644 --- a/app/src/main/java/com/example/saar/MainActivity.java +++ b/app/src/main/java/com/example/saar/MainActivity.java @@ -321,10 +321,7 @@ private void clearData() { editor = preferences.edit(); //method to reset shared preferences Utils.resetSharedPreferences(preferences, editor); - if (preferences.getBoolean(Constant.LOGIN_STATUS, false)) { - //user is logged in and wants to log out - Toast.makeText(this, "Logged Out", Toast.LENGTH_LONG).show(); - } else - Toast.makeText(this, "Not Logged In", Toast.LENGTH_LONG).show(); + Toast.makeText(this, "Logged Out", Toast.LENGTH_LONG).show(); + } }