aboutsummaryrefslogtreecommitdiff
path: root/src/github
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2013-11-15 07:14:03 -0800
committerScott Jackson <daneren2005@gmail.com>2013-11-15 07:14:03 -0800
commit07f636f0bee7b28a3835b101f64d1e542e2b2893 (patch)
treedb7a6664f97bd334c002b1f92168449911d03782 /src/github
parentbbf1ec51c18a5deddef714e948f3702b3d11f97c (diff)
downloaddsub-07f636f0bee7b28a3835b101f64d1e542e2b2893.tar.gz
dsub-07f636f0bee7b28a3835b101f64d1e542e2b2893.tar.bz2
dsub-07f636f0bee7b28a3835b101f64d1e542e2b2893.zip
Fix crash going to downloads section with screen on = true
Diffstat (limited to 'src/github')
-rw-r--r--src/github/daneren2005/dsub/fragments/DownloadFragment.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/fragments/DownloadFragment.java b/src/github/daneren2005/dsub/fragments/DownloadFragment.java
index d46fbec6..4aa6174b 100644
--- a/src/github/daneren2005/dsub/fragments/DownloadFragment.java
+++ b/src/github/daneren2005/dsub/fragments/DownloadFragment.java
@@ -506,7 +506,7 @@ public class DownloadFragment extends SubsonicFragment implements OnGestureListe
menu.findItem(R.id.menu_toggle_timer).setTitle(R.string.download_stop_timer);
}
}
- if(downloadService != null && downloadService.getKeepScreenOn()) {
+ if(downloadService != null && downloadService.getKeepScreenOn() && nowPlaying) {
menu.findItem(R.id.menu_screen_on_off).setTitle(R.string.download_menu_screen_off);
}
}