From 655a9805e433186741fd1aa43e6c40b09db27215 Mon Sep 17 00:00:00 2001 From: Nicolas Fella Date: Sat, 30 Mar 2019 16:41:47 +0000 Subject: [PATCH] Fix logic in volumechange --- src/org/kde/kdeconnect/Plugins/MprisPlugin/MprisActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/kde/kdeconnect/Plugins/MprisPlugin/MprisActivity.java b/src/org/kde/kdeconnect/Plugins/MprisPlugin/MprisActivity.java index d8572d79..d3e876d0 100644 --- a/src/org/kde/kdeconnect/Plugins/MprisPlugin/MprisActivity.java +++ b/src/org/kde/kdeconnect/Plugins/MprisPlugin/MprisActivity.java @@ -265,7 +265,7 @@ public class MprisActivity extends AppCompatActivity { } final int currentVolume = targetPlayer.getVolume(); - if (currentVolume < 100 || currentVolume > 0) { + if (currentVolume <= 100 && currentVolume >= 0) { int newVolume = currentVolume + step; if (newVolume > 100) { newVolume = 100;