2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-30 05:37:43 +00:00

Fix logic in volumechange

This commit is contained in:
Nicolas Fella 2019-03-30 16:41:47 +00:00
parent f88f2da7b6
commit 655a9805e4

View File

@ -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;