From 5198c6f8f9635e75a9d53d29ca8dc42eb45ee569 Mon Sep 17 00:00:00 2001 From: Ezerous Date: Sun, 4 Dec 2016 22:38:41 +0200 Subject: [PATCH] Theme fix for API>=21 Minor drawer tweak --- .../gr/thmmy/mthmmy/activities/BaseActivity.java | 6 +++--- app/src/main/res/values-v21/styles.xml | 16 ++++++++++++++++ 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/gr/thmmy/mthmmy/activities/BaseActivity.java b/app/src/main/java/gr/thmmy/mthmmy/activities/BaseActivity.java index 09f9dade..28d04c89 100644 --- a/app/src/main/java/gr/thmmy/mthmmy/activities/BaseActivity.java +++ b/app/src/main/java/gr/thmmy/mthmmy/activities/BaseActivity.java @@ -73,7 +73,7 @@ public class BaseActivity extends AppCompatActivity @Override protected void onPause() { super.onPause(); - if(drawer!=null) //temporary solution to solve drawer animation closing after returning to activity + if(drawer!=null) //close drawer animation after returning to activity drawer.closeDrawer(); } @@ -177,8 +177,8 @@ public class BaseActivity extends AppCompatActivity } } - else - drawer.closeDrawer(); + + drawer.closeDrawer(); return true; } }) diff --git a/app/src/main/res/values-v21/styles.xml b/app/src/main/res/values-v21/styles.xml index 04e77b64..72e2ac82 100644 --- a/app/src/main/res/values-v21/styles.xml +++ b/app/src/main/res/values-v21/styles.xml @@ -1,5 +1,21 @@