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

Replace hidden API startForegroundServiceAsUser

Replace it with getting context as the given user first and
calling startForegroundService, which is a public API.

Also add test for using PendingIntent#getService for
MediaButtonReceiver.

Bug: 161333794
Test: atest CtsMediaTestCases:android.media.cts.\
    MediaSessionTest#testSetMediaButtonReceiver_service
Change-Id: I0fbd2f5aaa011b1514ada6439816f89c4334f0a9
parent b19564f7
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