Loading src/com/android/bluetooth/avrcp/Avrcp.java +6 −4 Original line number Original line Diff line number Diff line Loading @@ -334,16 +334,18 @@ public final class Avrcp { public void doQuit() { public void doQuit() { if (DEBUG) Log.d(TAG, "doQuit"); if (DEBUG) Log.d(TAG, "doQuit"); if (mMediaController != null) mMediaController.unregisterCallback(mMediaControllerCb); if (mMediaSessionManager != null) { mMediaSessionManager.setCallback(null, null); mMediaSessionManager.removeOnActiveSessionsChangedListener(mActiveSessionListener); } mHandler.removeCallbacksAndMessages(null); mHandler.removeCallbacksAndMessages(null); Looper looper = mHandler.getLooper(); Looper looper = mHandler.getLooper(); if (looper != null) { if (looper != null) { looper.quit(); looper.quit(); } } if (mMediaController != null) mMediaController.unregisterCallback(mMediaControllerCb); mMediaSessionManager.removeOnActiveSessionsChangedListener(mActiveSessionListener); mHandler = null; mHandler = null; mContext.unregisterReceiver(mAvrcpReceiver); mContext.unregisterReceiver(mAvrcpReceiver); mContext.unregisterReceiver(mBootReceiver); mContext.unregisterReceiver(mBootReceiver); Loading Loading
src/com/android/bluetooth/avrcp/Avrcp.java +6 −4 Original line number Original line Diff line number Diff line Loading @@ -334,16 +334,18 @@ public final class Avrcp { public void doQuit() { public void doQuit() { if (DEBUG) Log.d(TAG, "doQuit"); if (DEBUG) Log.d(TAG, "doQuit"); if (mMediaController != null) mMediaController.unregisterCallback(mMediaControllerCb); if (mMediaSessionManager != null) { mMediaSessionManager.setCallback(null, null); mMediaSessionManager.removeOnActiveSessionsChangedListener(mActiveSessionListener); } mHandler.removeCallbacksAndMessages(null); mHandler.removeCallbacksAndMessages(null); Looper looper = mHandler.getLooper(); Looper looper = mHandler.getLooper(); if (looper != null) { if (looper != null) { looper.quit(); looper.quit(); } } if (mMediaController != null) mMediaController.unregisterCallback(mMediaControllerCb); mMediaSessionManager.removeOnActiveSessionsChangedListener(mActiveSessionListener); mHandler = null; mHandler = null; mContext.unregisterReceiver(mAvrcpReceiver); mContext.unregisterReceiver(mAvrcpReceiver); mContext.unregisterReceiver(mBootReceiver); mContext.unregisterReceiver(mBootReceiver); Loading