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:
parent
f88f2da7b6
commit
655a9805e4
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user