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

Unverified Commit 3f034d3e authored by Jesse Chan's avatar Jesse Chan Committed by Michael Bestas
Browse files

VolumeDialog: Display default row when active row is notification



Commit "frameworks: Add unlinked ringtone and notification volumes"
introduced STREAM_NOTIFICATION. However, this stream type, although
marked as important, was not added to the list in shouldBeVisibleH.
As a result, the volume panel behavior of STREAM_NOTIFICATION deviates
from other user-facing streams like media, call and ring.

This change adds STREAM_NOTIFICATION so the behavior becomes consistent.

Change-Id: I092c5bf0ae8cbee85af6adfa0da308dfdb60e66a
Signed-off-by: default avatarJesse Chan <jc@lineageos.org>
parent de16af26
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -23,6 +23,7 @@ import static android.media.AudioManager.RINGER_MODE_VIBRATE;
import static android.media.AudioManager.STREAM_ACCESSIBILITY;
import static android.media.AudioManager.STREAM_ALARM;
import static android.media.AudioManager.STREAM_MUSIC;
import static android.media.AudioManager.STREAM_NOTIFICATION;
import static android.media.AudioManager.STREAM_RING;
import static android.media.AudioManager.STREAM_VOICE_CALL;
import static android.view.View.ACCESSIBILITY_LIVE_REGION_POLITE;
@@ -1694,6 +1695,7 @@ public class VolumeDialogImpl implements VolumeDialog, Dumpable,

            if (row.defaultStream) {
                return activeRow.stream == STREAM_RING
                        || activeRow.stream == STREAM_NOTIFICATION
                        || activeRow.stream == STREAM_ALARM
                        || activeRow.stream == STREAM_VOICE_CALL
                        || activeRow.stream == STREAM_ACCESSIBILITY