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

Commit cb4dcb6d authored by Ted Wang's avatar Ted Wang
Browse files

Response BLUETOOTH_PLAYER as a non-browsable player

If there is no browsable player exist, set Bluetooth Player as
non-browsable player.

Tag: #compatibility
Bug: 163109635
Test: Manual
Change-Id: I1f6175668af4e39aad438aa52f4aaaee8effb220
parent 4491d9e3
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -257,6 +257,10 @@ public class MediaPlayerList {
        info.id = BLUETOOTH_PLAYER_ID;
        info.name = BLUETOOTH_PLAYER_NAME;
        info.browsable = true;
        if (mBrowsablePlayers.size() == 0) {
            // Set Bluetooth Player as non-browable if there is not browsable player exist.
            info.browsable = false;
        }
        List<PlayerInfo> ret = new ArrayList<PlayerInfo>();
        ret.add(info);