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

Skip to content
Commit 0de3460b authored by Cheney Ni's avatar Cheney Ni
Browse files

Keep those MediaControllers of none addressed players to be up-to-date

We moniter both changes of session and player from MediaSessionManager
and only update the MediaController of activated player. In case if
session changes serveral times before player activated, the old
MediaController would be deprecated but still was in used.  Without
session changed again to update the MediaController, it causes AVRCP
can't receive callbacks from MediaSessionManager after player activated.

We now always update the MediaController to new one no matter the
player is activated or not so can receive player's callbacks as well.

Bug: 110408992
Bug: 111622139
Test: manually switching players
Change-Id: Idfa144f68743679613f4e11f8cd75dd889f01f0e
Merged-In: Idfa144f68743679613f4e11f8cd75dd889f01f0e
(cherry picked from commit 105d3bd0)
parent 7249fcd0
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