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

Commit 7094005b authored by Hyundo Moon's avatar Hyundo Moon
Browse files

AML: Use KeyEvent.isMediaSessionKey() which is public

Bug: 119789707
Test: mmm . (under frameworks/av/packages/MediaComponents)
Change-Id: I60f3271b205348ed64241851304fe7213a535c8e
parent e72cb663
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.