From 4c7aa65a2c7c3ca3a0fa6929980d10be997e1f1e Mon Sep 17 00:00:00 2001 From: somenath sarkar Date: Tue, 11 Jun 2019 01:08:32 +0530 Subject: [PATCH] Removed unnecessary toast --- app/src/main/java/com/example/saar/MainActivity.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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(); + } }