1. Micha Kops
  2. bitbeaker

Commits

Tobias Duehr  committed c7d877b

Tried to fix #51, please test

  • Participants
  • Parent commits 72d1747
  • Branches default

Comments (0)

Files changed (2)

File src/com/saibotd/bitbeaker/Bitbeaker.java

View file
 	}
 	public void logOut() {
 		SharedPreferences.Editor editor = settings.edit();
-		editor.clear();
+		editor.remove("username");
+		editor.remove("password");
 		editor.commit();
 	}
 }

File src/com/saibotd/bitbeaker/LoginActivity.java

View file
 	private void logOut(Boolean isError) {
 		if (getProgressDialog() != null)
 			getProgressDialog().dismiss();
-		bitbeaker.logOut();
 		if (isError) {
 			AlertDialog alertDialog = new AlertDialog.Builder(this).create();
 			alertDialog.setTitle(this.getString(R.string.login_error_title));
 			alertDialog.setMessage(this.getString(R.string.login_error_message));
 			alertDialog.show();
-		}
+		} else 
+			bitbeaker.logOut();
 		bitbeaker.clearKV();
 	}