diff options
author | Scott Jackson <daneren2005@gmail.com> | 2012-09-30 16:36:04 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2012-09-30 16:36:04 -0700 |
commit | 3abd47156429f5657fd58dfb432f037b9290c948 (patch) | |
tree | 652abc2a7f43276204d98b969ec2a80df10965c2 /subsonic-android | |
parent | 860f2c22802759701dd7c0ac2ff5ee83f1f153f5 (diff) | |
download | dsub-3abd47156429f5657fd58dfb432f037b9290c948.tar.gz dsub-3abd47156429f5657fd58dfb432f037b9290c948.tar.bz2 dsub-3abd47156429f5657fd58dfb432f037b9290c948.zip |
Fixed bug with menu showing before download service is started
Diffstat (limited to 'subsonic-android')
-rw-r--r-- | subsonic-android/src/github/daneren2005/dsub/activity/DownloadActivity.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/activity/DownloadActivity.java b/subsonic-android/src/github/daneren2005/dsub/activity/DownloadActivity.java index 69496e98..1e568c03 100644 --- a/subsonic-android/src/github/daneren2005/dsub/activity/DownloadActivity.java +++ b/subsonic-android/src/github/daneren2005/dsub/activity/DownloadActivity.java @@ -502,7 +502,7 @@ public class DownloadActivity extends SubsonicTabActivity implements OnGestureLi savePlaylist.setEnabled(savePlaylistEnabled); savePlaylist.setVisible(savePlaylistEnabled); MenuItem screenOption = menu.findItem(R.id.menu_screen_on_off); - if (getDownloadService().getKeepScreenOn()) { + if (getDownloadService() != null && getDownloadService().getKeepScreenOn()) { screenOption.setTitle(R.string.download_menu_screen_off); } else { screenOption.setTitle(R.string.download_menu_screen_on); |