diff options
author | Scott Jackson <daneren2005@gmail.com> | 2012-10-25 19:12:32 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2012-10-25 19:12:32 -0700 |
commit | 25dd0ebe6389f36a91aeb00a277712f4c5544aa8 (patch) | |
tree | b45f9940565d189c3fdc35fcc071f23501844917 /subsonic-android/src | |
parent | 38ca40ecfbbf08486d98560663327ef528c0befb (diff) | |
download | dsub-25dd0ebe6389f36a91aeb00a277712f4c5544aa8.tar.gz dsub-25dd0ebe6389f36a91aeb00a277712f4c5544aa8.tar.bz2 dsub-25dd0ebe6389f36a91aeb00a277712f4c5544aa8.zip |
Always have actionbar showing + add toggle button to menu
Diffstat (limited to 'subsonic-android/src')
-rw-r--r-- | subsonic-android/src/github/daneren2005/dsub/activity/DownloadActivity.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/activity/DownloadActivity.java b/subsonic-android/src/github/daneren2005/dsub/activity/DownloadActivity.java index 0fa1ac94..003b88a0 100644 --- a/subsonic-android/src/github/daneren2005/dsub/activity/DownloadActivity.java +++ b/subsonic-android/src/github/daneren2005/dsub/activity/DownloadActivity.java @@ -128,8 +128,6 @@ public class DownloadActivity extends SubsonicTabActivity implements OnGestureLi super.onCreate(savedInstanceState); setTitle(nowPlaying ? "Now Playing" : "Downloading"); setContentView(R.layout.download); - - getSupportActionBar().hide(); WindowManager w = getWindowManager(); Display d = w.getDefaultDisplay(); @@ -623,6 +621,8 @@ public class DownloadActivity extends SubsonicTabActivity implements OnGestureLi intent.putExtra(Constants.INTENT_EXTRA_NAME_EXIT, true); Util.startActivityWithoutTransition(this, intent); return true; + case R.id.menu_toggle: + toggleFullscreenAlbumArt(); default: return false; } @@ -681,7 +681,6 @@ public class DownloadActivity extends SubsonicTabActivity implements OnGestureLi buttonBarFlipper.setInAnimation(AnimationUtils.loadAnimation(this, R.anim.push_down_in)); buttonBarFlipper.setOutAnimation(AnimationUtils.loadAnimation(this, R.anim.push_down_out)); buttonBarFlipper.setDisplayedChild(0); - getSupportActionBar().hide(); } else { playlistFlipper.setInAnimation(AnimationUtils.loadAnimation(this, R.anim.push_up_in)); playlistFlipper.setOutAnimation(AnimationUtils.loadAnimation(this, R.anim.push_up_out)); @@ -689,7 +688,6 @@ public class DownloadActivity extends SubsonicTabActivity implements OnGestureLi buttonBarFlipper.setInAnimation(AnimationUtils.loadAnimation(this, R.anim.push_up_in)); buttonBarFlipper.setOutAnimation(AnimationUtils.loadAnimation(this, R.anim.push_up_out)); buttonBarFlipper.setDisplayedChild(1); - getSupportActionBar().show(); } } |