Loading src/com/android/bluetooth/a2dpsink/mbs/A2dpMediaBrowserService.java +9 −4 Original line number Original line Diff line number Diff line Loading @@ -359,8 +359,9 @@ public class A2dpMediaBrowserService extends MediaBrowserService { intent.getParcelableExtra(AvrcpControllerService.EXTRA_PLAYBACK); intent.getParcelableExtra(AvrcpControllerService.EXTRA_PLAYBACK); MediaMetadata mmd = MediaMetadata mmd = intent.getParcelableExtra(AvrcpControllerService.EXTRA_METADATA); intent.getParcelableExtra(AvrcpControllerService.EXTRA_METADATA); mAvrcpCommandQueue.obtainMessage( mAvrcpCommandQueue MSG_TRACK, new Pair<PlaybackState, MediaMetadata>(pbb, mmd)).sendToTarget(); .obtainMessage(MSG_TRACK, new Pair<PlaybackState, MediaMetadata>(pbb, mmd)) .sendToTarget(); } else if (AvrcpControllerService.ACTION_FOLDER_LIST.equals(action)) { } else if (AvrcpControllerService.ACTION_FOLDER_LIST.equals(action)) { mAvrcpCommandQueue.obtainMessage(MSG_FOLDER_LIST, intent).sendToTarget(); mAvrcpCommandQueue.obtainMessage(MSG_FOLDER_LIST, intent).sendToTarget(); } } Loading Loading @@ -432,6 +433,8 @@ public class A2dpMediaBrowserService extends MediaBrowserService { // Set device to null. // Set device to null. mA2dpDevice = null; mA2dpDevice = null; mBrowseConnected = false; mBrowseConnected = false; // update playerList. notifyChildrenChanged("__ROOT__"); } } private void msgTrack(PlaybackState pb, MediaMetadata mmd) { private void msgTrack(PlaybackState pb, MediaMetadata mmd) { Loading Loading @@ -506,6 +509,8 @@ public class A2dpMediaBrowserService extends MediaBrowserService { return; return; } } mBrowseConnected = true; mBrowseConnected = true; // update playerList notifyChildrenChanged("__ROOT__"); } } private void msgFolderList(Intent intent) { private void msgFolderList(Intent intent) { Loading src/com/android/bluetooth/avrcpcontroller/AvrcpControllerService.java +1 −1 Original line number Original line Diff line number Diff line Loading @@ -435,7 +435,7 @@ public class AvrcpControllerService extends ProfileService { public synchronized boolean getChildren( public synchronized boolean getChildren( BluetoothDevice device, String parentMediaId, int start, int items) { BluetoothDevice device, String parentMediaId, int start, int items) { if (DBG) { if (DBG) { Log.d(TAG, "getChildrent device = " + device + " parent " + parentMediaId); Log.d(TAG, "getChildren device = " + device + " parent " + parentMediaId); } } if (device == null) { if (device == null) { Loading Loading
src/com/android/bluetooth/a2dpsink/mbs/A2dpMediaBrowserService.java +9 −4 Original line number Original line Diff line number Diff line Loading @@ -359,8 +359,9 @@ public class A2dpMediaBrowserService extends MediaBrowserService { intent.getParcelableExtra(AvrcpControllerService.EXTRA_PLAYBACK); intent.getParcelableExtra(AvrcpControllerService.EXTRA_PLAYBACK); MediaMetadata mmd = MediaMetadata mmd = intent.getParcelableExtra(AvrcpControllerService.EXTRA_METADATA); intent.getParcelableExtra(AvrcpControllerService.EXTRA_METADATA); mAvrcpCommandQueue.obtainMessage( mAvrcpCommandQueue MSG_TRACK, new Pair<PlaybackState, MediaMetadata>(pbb, mmd)).sendToTarget(); .obtainMessage(MSG_TRACK, new Pair<PlaybackState, MediaMetadata>(pbb, mmd)) .sendToTarget(); } else if (AvrcpControllerService.ACTION_FOLDER_LIST.equals(action)) { } else if (AvrcpControllerService.ACTION_FOLDER_LIST.equals(action)) { mAvrcpCommandQueue.obtainMessage(MSG_FOLDER_LIST, intent).sendToTarget(); mAvrcpCommandQueue.obtainMessage(MSG_FOLDER_LIST, intent).sendToTarget(); } } Loading Loading @@ -432,6 +433,8 @@ public class A2dpMediaBrowserService extends MediaBrowserService { // Set device to null. // Set device to null. mA2dpDevice = null; mA2dpDevice = null; mBrowseConnected = false; mBrowseConnected = false; // update playerList. notifyChildrenChanged("__ROOT__"); } } private void msgTrack(PlaybackState pb, MediaMetadata mmd) { private void msgTrack(PlaybackState pb, MediaMetadata mmd) { Loading Loading @@ -506,6 +509,8 @@ public class A2dpMediaBrowserService extends MediaBrowserService { return; return; } } mBrowseConnected = true; mBrowseConnected = true; // update playerList notifyChildrenChanged("__ROOT__"); } } private void msgFolderList(Intent intent) { private void msgFolderList(Intent intent) { Loading
src/com/android/bluetooth/avrcpcontroller/AvrcpControllerService.java +1 −1 Original line number Original line Diff line number Diff line Loading @@ -435,7 +435,7 @@ public class AvrcpControllerService extends ProfileService { public synchronized boolean getChildren( public synchronized boolean getChildren( BluetoothDevice device, String parentMediaId, int start, int items) { BluetoothDevice device, String parentMediaId, int start, int items) { if (DBG) { if (DBG) { Log.d(TAG, "getChildrent device = " + device + " parent " + parentMediaId); Log.d(TAG, "getChildren device = " + device + " parent " + parentMediaId); } } if (device == null) { if (device == null) { Loading