From bdd19c96b9877c224091fc8c75aab5d4ac87c393 Mon Sep 17 00:00:00 2001 From: Iason Karakostas Date: Sun, 13 Nov 2016 19:17:26 +0200 Subject: [PATCH] minor fixes login activity --- app/src/main/java/gr/thmmy/mthmmy/activities/LoginActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/gr/thmmy/mthmmy/activities/LoginActivity.java b/app/src/main/java/gr/thmmy/mthmmy/activities/LoginActivity.java index 80048c75..048caf78 100644 --- a/app/src/main/java/gr/thmmy/mthmmy/activities/LoginActivity.java +++ b/app/src/main/java/gr/thmmy/mthmmy/activities/LoginActivity.java @@ -98,7 +98,7 @@ public class LoginActivity extends BaseActivity { @Override protected void onPostExecute(Integer result) { - switch (loginData.getStatus()) { + switch (result) { case WRONG_USER: Toast.makeText(getApplicationContext(), "Wrong username!", Toast.LENGTH_LONG).show();