Android-x86
Fork
Donation

  • R/O
  • HTTP
  • SSH
  • HTTPS

packages-apps-Bluetooth: Commit

packages/apps/Bluetooth


Commit MetaInfo

Revision913d7ac2d13576ed2b3e2e856650cd746f243adc (tree)
Time2017-06-22 16:11:39
Authorandroid-build-team Robot <android-build-team-robot@goog...>
Commiterandroid-build-team Robot

Log Message

release-request-767e2998-9243-43e0-b656-1acb30ac5115-for-git_oc-release-4124637 snap-temp-L74200000076595014

Change-Id: I0c0722e17efcae75db01b8906b68d5374510c7ca

Change Summary

Incremental Difference

--- a/src/com/android/bluetooth/avrcp/AddressedMediaPlayer.java
+++ b/src/com/android/bluetooth/avrcp/AddressedMediaPlayer.java
@@ -133,7 +133,9 @@ public class AddressedMediaPlayer {
133133 }
134134 mNowPlayingList = items;
135135 // TODO (jamuraa): test to see if the single-item queue is the same and don't send
136- mMediaInterface.nowPlayingChangedRsp(AvrcpConstants.NOTIFICATION_TYPE_CHANGED);
136+ if (mMediaInterface != null) {
137+ mMediaInterface.nowPlayingChangedRsp(AvrcpConstants.NOTIFICATION_TYPE_CHANGED);
138+ }
137139 return items;
138140 }
139141
--- a/src/com/android/bluetooth/avrcp/Avrcp.java
+++ b/src/com/android/bluetooth/avrcp/Avrcp.java
@@ -292,7 +292,7 @@ public final class Avrcp {
292292 context.registerReceiver(mBootReceiver, bootFilter);
293293 }
294294
295- private void start() {
295+ private synchronized void start() {
296296 HandlerThread thread = new HandlerThread("BluetoothAvrcpHandler");
297297 thread.start();
298298 Looper looper = thread.getLooper();
@@ -334,11 +334,9 @@ public final class Avrcp {
334334 return ar;
335335 }
336336
337- public void doQuit() {
337+ public synchronized void doQuit() {
338338 if (DEBUG) Log.d(TAG, "doQuit");
339- synchronized (this) {
340- if (mMediaController != null) mMediaController.unregisterCallback(mMediaControllerCb);
341- }
339+ if (mMediaController != null) mMediaController.unregisterCallback(mMediaControllerCb);
342340 if (mMediaSessionManager != null) {
343341 mMediaSessionManager.setCallback(null, null);
344342 mMediaSessionManager.removeOnActiveSessionsChangedListener(mActiveSessionListener);
Show on old repository browser