aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2015-09-04 13:26:28 -0700
committerScott Jackson <daneren2005@gmail.com>2015-09-04 13:26:28 -0700
commit4f350560d5df991951fa00c63cfc773ece8b4717 (patch)
tree4e935e770c385d3292d74821686fbb4c5d224f9f
parent1b69bcb501568081eab31b4b54e93cea2673ee32 (diff)
downloaddsub-4f350560d5df991951fa00c63cfc773ece8b4717.tar.gz
dsub-4f350560d5df991951fa00c63cfc773ece8b4717.tar.bz2
dsub-4f350560d5df991951fa00c63cfc773ece8b4717.zip
Fix missing back arrow for sub fragments
-rw-r--r--app/src/main/java/github/daneren2005/dsub/activity/SubsonicActivity.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/app/src/main/java/github/daneren2005/dsub/activity/SubsonicActivity.java b/app/src/main/java/github/daneren2005/dsub/activity/SubsonicActivity.java
index f7cdd92c..bc114272 100644
--- a/app/src/main/java/github/daneren2005/dsub/activity/SubsonicActivity.java
+++ b/app/src/main/java/github/daneren2005/dsub/activity/SubsonicActivity.java
@@ -383,7 +383,7 @@ public class SubsonicActivity extends AppCompatActivity implements OnItemSelecte
}
};
drawer.setDrawerListener(drawerToggle);
- drawerToggle.setDrawerIndicatorEnabled(false);
+ drawerToggle.setDrawerIndicatorEnabled(true);
drawer.setOnTouchListener(new View.OnTouchListener() {
public boolean onTouch(View v, MotionEvent event) {
@@ -844,8 +844,11 @@ public class SubsonicActivity extends AppCompatActivity implements OnItemSelecte
getSupportActionBar().setDisplayShowCustomEnabled(true);
}
- drawerToggle.setDrawerIndicatorEnabled(false);
- getSupportActionBar().setDisplayHomeAsUpEnabled(true);
+ if(drawerToggle.isDrawerIndicatorEnabled()) {
+ getSupportActionBar().setDisplayHomeAsUpEnabled(false);
+ drawerToggle.setDrawerIndicatorEnabled(false);
+ getSupportActionBar().setDisplayHomeAsUpEnabled(true);
+ }
} else if(!isTv()) {
getSupportActionBar().setTitle(currentFragment.getTitle());
getSupportActionBar().setDisplayShowCustomEnabled(false);