Loading android/app/src/com/android/bluetooth/audio_util/MediaPlayerList.java +1 −0 Original line number Diff line number Diff line Loading @@ -247,6 +247,7 @@ public class MediaPlayerList { } public void cleanup() { mCallback = null; mContext.unregisterReceiver(mPackageChangedBroadcastReceiver); mActivePlayerId = NO_ACTIVE_PLAYER; Loading android/app/src/com/android/bluetooth/mcp/McpService.java +3 −0 Original line number Diff line number Diff line Loading @@ -115,6 +115,9 @@ public class McpService extends ProfileService { synchronized (mLock) { if (getGmcsLocked() == null) { // Initialize the Media Control Service Server if (mGmcs != null) { mGmcs.cleanup(); } mGmcs = new MediaControlProfile(this); // Requires this service to be already started thus we have to make it an async call mHandler.post(() -> { Loading Loading
android/app/src/com/android/bluetooth/audio_util/MediaPlayerList.java +1 −0 Original line number Diff line number Diff line Loading @@ -247,6 +247,7 @@ public class MediaPlayerList { } public void cleanup() { mCallback = null; mContext.unregisterReceiver(mPackageChangedBroadcastReceiver); mActivePlayerId = NO_ACTIVE_PLAYER; Loading
android/app/src/com/android/bluetooth/mcp/McpService.java +3 −0 Original line number Diff line number Diff line Loading @@ -115,6 +115,9 @@ public class McpService extends ProfileService { synchronized (mLock) { if (getGmcsLocked() == null) { // Initialize the Media Control Service Server if (mGmcs != null) { mGmcs.cleanup(); } mGmcs = new MediaControlProfile(this); // Requires this service to be already started thus we have to make it an async call mHandler.post(() -> { Loading