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

Commit c128a84e authored by Jaewan Kim's avatar Jaewan Kim Committed by Automerger Merge Worker
Browse files

Merge "Stop ignoring media key events in PhoneFallbackEventHandler while in...

Merge "Stop ignoring media key events in PhoneFallbackEventHandler while in call" into sc-dev am: d05e7856 am: 344489a9

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14495988

Change-Id: Iacbeee3f5f381f60991f98278f85be1cd0d7f225
parents f93781c3 344489a9
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -97,11 +97,6 @@ public class PhoneFallbackEventHandler implements FallbackEventHandler {
            case KeyEvent.KEYCODE_MEDIA_PLAY:
            case KeyEvent.KEYCODE_MEDIA_PAUSE:
            case KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE:
                /* Suppress PLAY/PAUSE toggle when phone is ringing or in-call
                 * to avoid music playback */
                if (getTelephonyManager().getCallState() != TelephonyManager.CALL_STATE_IDLE) {
                    return true;  // suppress key event
                }
            case KeyEvent.KEYCODE_MUTE:
            case KeyEvent.KEYCODE_HEADSETHOOK:
            case KeyEvent.KEYCODE_MEDIA_STOP: