aboutsummaryrefslogtreecommitdiff
path: root/subsonic-android/src
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2012-10-10 19:19:01 -0700
committerScott Jackson <daneren2005@gmail.com>2012-10-10 19:19:01 -0700
commit8d2821fda2aa83bbe04dbd548c2ed1303b88e413 (patch)
treea8c6d04d32c895162c63f605b32a322f25da08dd /subsonic-android/src
parentf50c6d4b82113bdc3f7fda37436bcafaec70b4f4 (diff)
downloaddsub-8d2821fda2aa83bbe04dbd548c2ed1303b88e413.tar.gz
dsub-8d2821fda2aa83bbe04dbd548c2ed1303b88e413.tar.bz2
dsub-8d2821fda2aa83bbe04dbd548c2ed1303b88e413.zip
Added exit button to Now Playing tab
Diffstat (limited to 'subsonic-android/src')
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/activity/DownloadActivity.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/activity/DownloadActivity.java b/subsonic-android/src/github/daneren2005/dsub/activity/DownloadActivity.java
index 0670b148..c2f8c7f8 100644
--- a/subsonic-android/src/github/daneren2005/dsub/activity/DownloadActivity.java
+++ b/subsonic-android/src/github/daneren2005/dsub/activity/DownloadActivity.java
@@ -610,6 +610,12 @@ public class DownloadActivity extends SubsonicTabActivity implements OnGestureLi
case R.id.menu_toggle_now_playing:
toggleNowPlaying();
return true;
+ case R.id.menu_exit:
+ intent = new Intent(this, MainActivity.class);
+ intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
+ intent.putExtra(Constants.INTENT_EXTRA_NAME_EXIT, true);
+ Util.startActivityWithoutTransition(this, intent);
+ return true;
default:
return false;
}