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

Commit da275b92 authored by Hyundo Moon's avatar Hyundo Moon Committed by Android (Google) Code Review
Browse files

Merge "AML: Use KeyEvent.isMediaSessionKey() which is public"

parents b29357a7 7094005b
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -149,12 +149,9 @@ public final class MediaController {
        if (keyEvent == null) {
            throw new IllegalArgumentException("KeyEvent may not be null");
        }
        //TODO(b/119789707): Resolve hidden API usage: KeyEvent#isMediaKey
        /*
        if (!KeyEvent.isMediaKey(keyEvent.getKeyCode())) {
        if (!KeyEvent.isMediaSessionKey(keyEvent.getKeyCode())) {
            return false;
        }
        */
        try {
            //TODO(b/119748678): Resolve mContext.getOpPackageName() through this file.
            // Temporarilly it's replaced with "mContext.getOpPackageName()" for compiling.