Skip to content
Commit b2fcacab authored by Jin Seok Park's avatar Jin Seok Park
Browse files

[Media ML] Replace using PendingIntent hidden APIs

Replace using PendingIntent.getIntent() with the newly exposed APIs:
queryIntentComponents
isActivity
isBroadcast
isService
isForegroundService

Also throw IllegalArgumentException when a PendingIntent with an
implicit intent that cannot be resolved to a specific component
name is set as a media button receiver.

Bug: 161334442
Test: atest CtsMediaTestCases:android.media.cts.MediaSessionTest
Change-Id: I19ac844bedea30f4a42bd292acaf33e15e8e5d15
parent cf6cd1ba
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment