Skip to content

Commit

Permalink
Removed unnecessary toast
Browse files Browse the repository at this point in the history
  • Loading branch information
somenath1435 committed Jun 10, 2019
1 parent f19a4a1 commit 4c7aa65
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions app/src/main/java/com/example/saar/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();

}
}

0 comments on commit 4c7aa65

Please sign in to comment.