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

Skip to content
Commit 27c9c79f authored by Hyundo Moon's avatar Hyundo Moon
Browse files

Add public add/removeOnMediaKeyEventSessionChangedListener

The MediaSessionManager has two system APIs
 - addOnMediaKeyEventSessionChangedListener
 - removeOnMediaKeyEventSessionChangedListener
which listen the media key session updates.

Since the APIs require MEDIA_CONTENT_CONTROL permission,
non-system apps could not use the APIs.

This CL adds an overloaded version of those APIs so that apps with
enabled notification listener can use the functionality.

Bug: 187483932
Test: Passed MediaSessionManager(Host)Test
Change-Id: Ic13353983e23f557afaa13eb11a48e48d24d4358
parent 2e8839e9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment