diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-07-08 19:28:15 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-07-08 19:28:15 -0700 |
commit | 35c3356f1b63457fc7072d60e8ba01e0aba3ec28 (patch) | |
tree | f98ea207158a561af79689d5ef6ffa0eb239972e | |
parent | 1486d1bf9f42a9bbefe15d66eb7b4095d939c4cb (diff) | |
download | dsub-35c3356f1b63457fc7072d60e8ba01e0aba3ec28.tar.gz dsub-35c3356f1b63457fc7072d60e8ba01e0aba3ec28.tar.bz2 dsub-35c3356f1b63457fc7072d60e8ba01e0aba3ec28.zip |
Close drawer if open on back press
-rw-r--r-- | src/github/daneren2005/dsub/activity/SubsonicActivity.java | 5 |
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 {
|