aboutsummaryrefslogtreecommitdiff
path: root/app/src/main
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2016-10-26 17:10:36 -0700
committerScott Jackson <daneren2005@gmail.com>2016-10-26 17:10:36 -0700
commit979b43d2fbf4478ecbbc67d47b0e70e63731f61a (patch)
tree024a8e0bc3073926b50df04e44dc152d67fe62a3 /app/src/main
parent52899f56b3af87f16c57450d718b7230667f6d49 (diff)
downloaddsub-979b43d2fbf4478ecbbc67d47b0e70e63731f61a.tar.gz
dsub-979b43d2fbf4478ecbbc67d47b0e70e63731f61a.tar.bz2
dsub-979b43d2fbf4478ecbbc67d47b0e70e63731f61a.zip
Fix crash if pressing play if in IDLE state
Diffstat (limited to 'app/src/main')
-rw-r--r--app/src/main/java/github/daneren2005/dsub/activity/SubsonicFragmentActivity.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/src/main/java/github/daneren2005/dsub/activity/SubsonicFragmentActivity.java b/app/src/main/java/github/daneren2005/dsub/activity/SubsonicFragmentActivity.java
index fb8221c8..c2debd4d 100644
--- a/app/src/main/java/github/daneren2005/dsub/activity/SubsonicFragmentActivity.java
+++ b/app/src/main/java/github/daneren2005/dsub/activity/SubsonicFragmentActivity.java
@@ -320,6 +320,8 @@ public class SubsonicFragmentActivity extends SubsonicActivity implements Downlo
PlayerState state = getDownloadService().getPlayerState();
if(state == PlayerState.STARTED) {
getDownloadService().pause();
+ } else if(state == PlayerState.IDLE) {
+ getDownloadService().play();
} else {
getDownloadService().start();
}