aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-07-08 19:28:15 -0700
committerScott Jackson <daneren2005@gmail.com>2014-07-08 19:28:15 -0700
commit35c3356f1b63457fc7072d60e8ba01e0aba3ec28 (patch)
treef98ea207158a561af79689d5ef6ffa0eb239972e /src
parent1486d1bf9f42a9bbefe15d66eb7b4095d939c4cb (diff)
downloaddsub-35c3356f1b63457fc7072d60e8ba01e0aba3ec28.tar.gz
dsub-35c3356f1b63457fc7072d60e8ba01e0aba3ec28.tar.bz2
dsub-35c3356f1b63457fc7072d60e8ba01e0aba3ec28.zip
Close drawer if open on back press
Diffstat (limited to 'src')
-rw-r--r--src/github/daneren2005/dsub/activity/SubsonicActivity.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/activity/SubsonicActivity.java b/src/github/daneren2005/dsub/activity/SubsonicActivity.java
index 395a347e..92775f3e 100644
--- a/src/github/daneren2005/dsub/activity/SubsonicActivity.java
+++ b/src/github/daneren2005/dsub/activity/SubsonicActivity.java
@@ -494,7 +494,10 @@ public class SubsonicActivity extends ActionBarActivity implements OnItemSelecte
}
public boolean onBackPressedSupport() {
- if(backStack.size() > 0) {
+ if(drawerOpen) {
+ drawer.closeDrawers();
+ return false;
+ } else if(backStack.size() > 0) {
removeCurrent();
return false;
} else {