diff options
author | daneren2005 <daneren2005@gmail.com> | 2013-10-29 15:27:28 -0700 |
---|---|---|
committer | daneren2005 <daneren2005@gmail.com> | 2013-10-29 15:27:28 -0700 |
commit | ea36963082790d7e9e2658a952fc291c092c85f5 (patch) | |
tree | 3a139fa8b5331fac4d039277751be03fc418b675 | |
parent | c2636ec6774f8ccc3125b558929ec9a873fe99cf (diff) | |
download | dsub-ea36963082790d7e9e2658a952fc291c092c85f5.tar.gz dsub-ea36963082790d7e9e2658a952fc291c092c85f5.tar.bz2 dsub-ea36963082790d7e9e2658a952fc291c092c85f5.zip |
Change title when drawer is open/closed
-rw-r--r-- | src/github/daneren2005/dsub/activity/SubsonicActivity.java | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/github/daneren2005/dsub/activity/SubsonicActivity.java b/src/github/daneren2005/dsub/activity/SubsonicActivity.java index 11145b9f..e5b62878 100644 --- a/src/github/daneren2005/dsub/activity/SubsonicActivity.java +++ b/src/github/daneren2005/dsub/activity/SubsonicActivity.java @@ -170,16 +170,13 @@ public class SubsonicActivity extends ActionBarActivity implements OnItemSelecte drawerToggle = new ActionBarDrawerToggle(this, drawer, R.drawable.ic_drawer, R.string.common_appname, R.string.common_appname) {
@Override
public void onDrawerClosed(View view) {
- /*if(pagerAdapter != null) {
-
- } else {
- getActionBar().setTitle(currentFragment.getTitle());
- }*/
+ setTitle(currentFragment.getTitle());
}
@Override
public void onDrawerOpened(View view) {
- // getActionBar().setTitle(R.string.common_appname);
+ getSupportActionBar().setTitle(R.string.common_appname);
+ getSupportActionBar().setDisplayShowCustomEnabled(false);
}
};
drawer.setDrawerListener(drawerToggle);
|