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

Commit db55def2 authored by Hongguang Chen's avatar Hongguang Chen
Browse files

Use music as a11y volume aliased volume on the single volume device

Bug: 286246461
Test: manual testing a11y volume behavior
Change-Id: I7e86fce872d06355b1a97b83e9b6b565ebff787c
parent c80f54b9
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -10833,6 +10833,10 @@ public class AudioService extends IAudioService.Stub
    private void updateA11yVolumeAlias(boolean a11VolEnabled) {
        if (DEBUG_VOL) Log.d(TAG, "Accessibility volume enabled = " + a11VolEnabled);
        if (mIsSingleVolume) {
            if (DEBUG_VOL) Log.d(TAG, "Accessibility volume is not set on single volume device");
            return;
        }
        if (sIndependentA11yVolume != a11VolEnabled) {
            sIndependentA11yVolume = a11VolEnabled;
            // update the volume mapping scheme