diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-02-05 21:48:10 -0800 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-02-05 21:48:10 -0800 |
commit | c8e052fdd70fe9ef1117881b02496d6afaa215a7 (patch) | |
tree | 9682a5b51aee091b9470375cc12947425f47c3da /src | |
parent | 5b91660d1122aa7271b0e71fed111e3c4d7893ed (diff) | |
download | dsub-c8e052fdd70fe9ef1117881b02496d6afaa215a7.tar.gz dsub-c8e052fdd70fe9ef1117881b02496d6afaa215a7.tar.bz2 dsub-c8e052fdd70fe9ef1117881b02496d6afaa215a7.zip |
#272 Fix rotating losing drawer's state
Diffstat (limited to 'src')
-rw-r--r-- | src/github/daneren2005/dsub/activity/SubsonicFragmentActivity.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/github/daneren2005/dsub/activity/SubsonicFragmentActivity.java b/src/github/daneren2005/dsub/activity/SubsonicFragmentActivity.java index c44f87fc..d22bc3ab 100644 --- a/src/github/daneren2005/dsub/activity/SubsonicFragmentActivity.java +++ b/src/github/daneren2005/dsub/activity/SubsonicFragmentActivity.java @@ -300,6 +300,14 @@ public class SubsonicFragmentActivity extends SubsonicActivity { }
@Override
+ public void onRestoreInstanceState(Bundle savedInstanceState) {
+ super.onRestoreInstanceState(savedInstanceState);
+ if(backStack.size() > 0) {
+ drawerToggle.setDrawerIndicatorEnabled(false);
+ }
+ }
+
+ @Override
public void setContentView(int viewId) {
super.setContentView(viewId);
drawerToggle.setDrawerIndicatorEnabled(true);
|