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

Commit 656cdc1c authored by quic_mqiu's avatar quic_mqiu Committed by Steve Kondik
Browse files

AudioService: add STREAM_DTMF to stream affected by ringer mode

-STREAM_DTMF volume muted when phone in vibration or silence
 mode but will not restore when back to normal mode by setting
 STREAM_RING volume to 1
-Add STREAM_DTMF to the list of stream volume affected by ringer
 mode

Change-Id: Ib91d6b2c09e10b5cd86ae192cf334c69884da294
CRs-Fixed: 549908
parent 25f22b11
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -3053,10 +3053,11 @@ public class AudioService extends IAudioService.Stub {
                 (1 << AudioSystem.STREAM_SYSTEM)|(1 << AudioSystem.STREAM_SYSTEM_ENFORCED)),
                 UserHandle.USER_CURRENT);

        // ringtone, notification and system streams are always affected by ringer mode
        // ringtone, notification, system and dtmf streams are always affected by ringer mode
        ringerModeAffectedStreams |= (1 << AudioSystem.STREAM_RING)|
                                        (1 << AudioSystem.STREAM_NOTIFICATION)|
                                        (1 << AudioSystem.STREAM_SYSTEM);
                                        (1 << AudioSystem.STREAM_SYSTEM)|
                                        (1 << AudioSystem.STREAM_DTMF);

        switch (mPlatformType) {
            case PLATFORM_TELEVISION: