2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-31 06:05:12 +00:00

Allow packets that carry both muted and volume

This commit is contained in:
Albert Vaca
2018-11-20 01:10:09 +01:00
parent 9be46002ad
commit df0d02cd0d

View File

@@ -86,7 +86,8 @@ public class SystemvolumePlugin extends Plugin {
if (sinks.containsKey(name)) {
if (np.has("volume")) {
sinks.get(name).setVolume(np.getInt("volume"));
} else if (np.has("muted")) {
}
if (np.has("muted")) {
sinks.get(name).setMute(np.getBoolean("muted"));
}
}