mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-31 22:25:08 +00:00
Allow packets that carry both muted and volume
This commit is contained in:
@@ -86,7 +86,8 @@ public class SystemvolumePlugin extends Plugin {
|
|||||||
if (sinks.containsKey(name)) {
|
if (sinks.containsKey(name)) {
|
||||||
if (np.has("volume")) {
|
if (np.has("volume")) {
|
||||||
sinks.get(name).setVolume(np.getInt("volume"));
|
sinks.get(name).setVolume(np.getInt("volume"));
|
||||||
} else if (np.has("muted")) {
|
}
|
||||||
|
if (np.has("muted")) {
|
||||||
sinks.get(name).setMute(np.getBoolean("muted"));
|
sinks.get(name).setMute(np.getBoolean("muted"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user