From b8a8108c08d0164327ccd81f6f7af06a3cc8951c Mon Sep 17 00:00:00 2001 From: Ezerous Date: Mon, 28 Nov 2016 18:31:27 +0200 Subject: [PATCH] Fixed image scaling, indignificant change at SessionManager --- app/src/main/assets/style.css | 6 ++++++ .../main/java/gr/thmmy/mthmmy/activities/MainActivity.java | 1 - .../main/java/gr/thmmy/mthmmy/session/SessionManager.java | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/app/src/main/assets/style.css b/app/src/main/assets/style.css index fe34bcac..cb42044f 100644 --- a/app/src/main/assets/style.css +++ b/app/src/main/assets/style.css @@ -835,4 +835,10 @@ ul#topmenu li a:hover left: 0; z-index: 90; width: 100%; +} + +img +{ + max-width:100% !important; + height:auto !important; } \ No newline at end of file diff --git a/app/src/main/java/gr/thmmy/mthmmy/activities/MainActivity.java b/app/src/main/java/gr/thmmy/mthmmy/activities/MainActivity.java index 602074c2..bd458780 100644 --- a/app/src/main/java/gr/thmmy/mthmmy/activities/MainActivity.java +++ b/app/src/main/java/gr/thmmy/mthmmy/activities/MainActivity.java @@ -187,7 +187,6 @@ public class MainActivity extends BaseActivity implements RecentFragment.OnListF protected void onPostExecute(Integer result) { Toast.makeText(getBaseContext(), "Logged out successfully!", Toast.LENGTH_LONG).show(); - sessionManager.guestLogin(); //Fall to guest login hideLogout(); progressDialog.dismiss(); } diff --git a/app/src/main/java/gr/thmmy/mthmmy/session/SessionManager.java b/app/src/main/java/gr/thmmy/mthmmy/session/SessionManager.java index a351e1b0..dd338c94 100644 --- a/app/src/main/java/gr/thmmy/mthmmy/session/SessionManager.java +++ b/app/src/main/java/gr/thmmy/mthmmy/session/SessionManager.java @@ -230,6 +230,7 @@ public class SessionManager } finally { //All data should always be cleared from device regardless the result of logout clearSessionData(); + guestLogin(); } } //--------------------------------------AUTH ENDS-----------------------------------------------