From ea36963082790d7e9e2658a952fc291c092c85f5 Mon Sep 17 00:00:00 2001 From: daneren2005 Date: Tue, 29 Oct 2013 15:27:28 -0700 Subject: Change title when drawer is open/closed --- src/github/daneren2005/dsub/activity/SubsonicActivity.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/github') 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); -- cgit v1.2.3