Merge "audiomanager: fix volume group callback"

This commit is contained in:
Eric Laurent
2020-01-29 21:01:04 +00:00
committed by Gerrit Code Review

View File

@@ -157,9 +157,7 @@ public class AudioVolumeGroupChangeHandler {
Handler handler = eventHandler.handler();
if (handler != null) {
Message m = handler.obtainMessage(what, arg1, arg2, obj);
if (what != AUDIOVOLUMEGROUP_EVENT_NEW_LISTENER) {
handler.removeMessages(what);
}
// Do not remove previous messages, as we would lose notification of group changes
handler.sendMessage(m);
}
}