aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/github/daneren2005
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2017-06-14 17:48:23 -0700
committerScott Jackson <daneren2005@gmail.com>2017-06-14 17:48:23 -0700
commit807af83a4be6870daf3feb9de6273696d3a68587 (patch)
tree681a3cd211817dc481d6ac9952176dec597dd89d /app/src/main/java/github/daneren2005
parent3785b69190519824771cdc1c5a6ce8cbd50394d3 (diff)
downloaddsub-807af83a4be6870daf3feb9de6273696d3a68587.tar.gz
dsub-807af83a4be6870daf3feb9de6273696d3a68587.tar.bz2
dsub-807af83a4be6870daf3feb9de6273696d3a68587.zip
Fix persistent notification showing different action when paused
Diffstat (limited to 'app/src/main/java/github/daneren2005')
-rw-r--r--app/src/main/java/github/daneren2005/dsub/util/Notifications.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/src/main/java/github/daneren2005/dsub/util/Notifications.java b/app/src/main/java/github/daneren2005/dsub/util/Notifications.java
index af3b7704..750ab40c 100644
--- a/app/src/main/java/github/daneren2005/dsub/util/Notifications.java
+++ b/app/src/main/java/github/daneren2005/dsub/util/Notifications.java
@@ -173,7 +173,7 @@ public final class Notifications {
if(expanded) {
rv.setImageViewResource(R.id.control_pause, playing ? R.drawable.notification_pause : R.drawable.notification_start);
- if(shouldFastForward && playing) {
+ if(shouldFastForward) {
rv.setImageViewResource(R.id.control_previous, R.drawable.notification_rewind);
rv.setImageViewResource(R.id.control_next, R.drawable.notification_fastforward);
} else {
@@ -182,7 +182,7 @@ public final class Notifications {
}
} else {
rv.setImageViewResource(R.id.control_previous, playing ? R.drawable.notification_pause : R.drawable.notification_start);
- if(shouldFastForward && playing) {
+ if(shouldFastForward) {
rv.setImageViewResource(R.id.control_pause, R.drawable.notification_fastforward);
} else {
rv.setImageViewResource(R.id.control_pause, R.drawable.notification_forward);
@@ -201,7 +201,7 @@ public final class Notifications {
// Create actions for media buttons
int previous = 0, pause = 0, next = 0, close = 0, rewind = 0, fastForward = 0;
if (expanded) {
- if (shouldFastForward && playing) {
+ if (shouldFastForward) {
rewind = R.id.control_previous;
pause = R.id.control_pause;
fastForward = R.id.control_next;
@@ -218,7 +218,7 @@ public final class Notifications {
} else {
if (persistent) {
pause = R.id.control_previous;
- if(shouldFastForward && playing) {
+ if(shouldFastForward) {
fastForward = R.id.control_pause;
} else {
next = R.id.control_pause;