Reponse 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
Merged-In: I1f6175668af4e39aad438aa52f4aaaee8effb220
diff --git a/src/com/android/bluetooth/avrcp/MediaPlayerList.java b/src/com/android/bluetooth/avrcp/MediaPlayerList.java
index bb2baab..4d9b413 100644
--- a/src/com/android/bluetooth/avrcp/MediaPlayerList.java
+++ b/src/com/android/bluetooth/avrcp/MediaPlayerList.java
@@ -260,6 +260,10 @@
         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);