Commit 655a9805 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Fix logic in volumechange

parent f88f2da7
...@@ -265,7 +265,7 @@ public class MprisActivity extends AppCompatActivity { ...@@ -265,7 +265,7 @@ public class MprisActivity extends AppCompatActivity {
} }
final int currentVolume = targetPlayer.getVolume(); final int currentVolume = targetPlayer.getVolume();
if (currentVolume < 100 || currentVolume > 0) { if (currentVolume <= 100 && currentVolume >= 0) {
int newVolume = currentVolume + step; int newVolume = currentVolume + step;
if (newVolume > 100) { if (newVolume > 100) {
newVolume = 100; newVolume = 100;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment