mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-31 06:05:12 +00:00
Fix logic in volumechange
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user