aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2019-04-25 15:24:01 -0700
committerAllan Wang <me@allanwang.ca>2019-04-25 15:24:01 -0700
commit00f25fee8c1b1f002a92d6c9b16088b1b8b33ba4 (patch)
tree0b9c2aa450af31d584febe6e0ecaaa7b4fbbea30 /app
parent4f3e44b7b9678dce48e7d322af72429b5f447acc (diff)
downloadfrost-00f25fee8c1b1f002a92d6c9b16088b1b8b33ba4.tar.gz
frost-00f25fee8c1b1f002a92d6c9b16088b1b8b33ba4.tar.bz2
frost-00f25fee8c1b1f002a92d6c9b16088b1b8b33ba4.zip
Close drawer on back if opened, resolves #1407
Diffstat (limited to 'app')
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/activities/BaseMainActivity.kt4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/activities/BaseMainActivity.kt b/app/src/main/kotlin/com/pitchedapps/frost/activities/BaseMainActivity.kt
index d6f1abe7..d8b29ddc 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/activities/BaseMainActivity.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/activities/BaseMainActivity.kt
@@ -508,6 +508,10 @@ abstract class BaseMainActivity : BaseActivity(), MainActivityContract,
}
override fun backConsumer(): Boolean {
+ if (drawer.isDrawerOpen) {
+ drawer.closeDrawer()
+ return true
+ }
if (currentFragment.onBackPressed()) return true
if (Prefs.exitConfirmation) {
materialDialogThemed {