Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e3361b8d authored by Amith Yamasani's avatar Amith Yamasani
Browse files

Fix over-eager locking of volume dialog's primary stream.

Bug: 3427027

Don't lock in the active stream if visual feedback was not requested.
This fixes a transient problem after the notification volume was modified
by an API call.

Change-Id: I2227d8fdf6cc565713d9bbcc66748805e04ae163
parent eefdd709
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -342,11 +342,10 @@ public class VolumePanel extends Handler implements OnSeekBarChangeListener, Vie

        if (LOGD) Log.d(TAG, "onVolumeChanged(streamType: " + streamType + ", flags: " + flags + ")");

        if ((flags & AudioManager.FLAG_SHOW_UI) != 0) {
            if (mActiveStreamType == -1) {
                reorderSliders(streamType);
            }

        if ((flags & AudioManager.FLAG_SHOW_UI) != 0) {
            onShowVolumeChanged(streamType, flags);
        }