aboutsummaryrefslogtreecommitdiff
path: root/src/github/daneren2005/dsub/activity/SubsonicFragmentActivity.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/github/daneren2005/dsub/activity/SubsonicFragmentActivity.java')
-rw-r--r--src/github/daneren2005/dsub/activity/SubsonicFragmentActivity.java19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/github/daneren2005/dsub/activity/SubsonicFragmentActivity.java b/src/github/daneren2005/dsub/activity/SubsonicFragmentActivity.java
index e3975703..5e3835a3 100644
--- a/src/github/daneren2005/dsub/activity/SubsonicFragmentActivity.java
+++ b/src/github/daneren2005/dsub/activity/SubsonicFragmentActivity.java
@@ -250,6 +250,12 @@ public class SubsonicFragmentActivity extends SubsonicActivity {
}
@Override
+ public void setContentView(int viewId) {
+ super.setContentView(viewId);
+ drawerToggle.setDrawerIndicatorEnabled(true);
+ }
+
+ @Override
public boolean onOptionsItemSelected(MenuItem item) {
if(super.onOptionsItemSelected(item)) {
return true;
@@ -269,6 +275,19 @@ public class SubsonicFragmentActivity extends SubsonicActivity {
}
}
}
+
+ @Override
+ public void replaceFragment(SubsonicFragment fragment, int id, int tag) {
+ super.replaceFragment(fragment, id, tag);
+ drawerToggle.setDrawerIndicatorEnabled(false);
+ }
+ @Override
+ protected void removeCurrent() {
+ super.removeCurrent();
+ if(backStack.isEmpty()) {
+ drawerToggle.setDrawerIndicatorEnabled(true);
+ }
+ }
@Override
public void startFragmentActivity(String fragmentType) {