Loading android/app/src/com/android/bluetooth/mcp/MediaControlGattService.java +2 −0 Original line number Diff line number Diff line Loading @@ -1636,6 +1636,8 @@ public class MediaControlGattService implements MediaControlGattServiceInterface Log.d(TAG, "Destroy"); } mAdapterService.unregisterBluetoothStateCallback(mBluetoothStateChangeCallback); if (mBluetoothGattServer == null) { return; } Loading android/app/src/com/android/bluetooth/tbs/TbsGatt.java +6 −2 Original line number Diff line number Diff line Loading @@ -254,8 +254,10 @@ public class TbsGatt { TbsGatt(TbsService tbsService) { mContext = tbsService; mAdapterService = Objects.requireNonNull(AdapterService.getAdapterService(), "AdapterService shouldn't be null when creating MediaControlCattService"); mAdapterService = Objects.requireNonNull( AdapterService.getAdapterService(), "AdapterService shouldn't be null when creating TbsGatt"); mAdapterService.registerBluetoothStateCallback( mContext.getMainExecutor(), mBluetoothStateChangeCallback); Loading Loading @@ -363,6 +365,8 @@ public class TbsGatt { } public void cleanup() { mAdapterService.unregisterBluetoothStateCallback(mBluetoothStateChangeCallback); if (mBluetoothGattServer == null) { return; } Loading Loading
android/app/src/com/android/bluetooth/mcp/MediaControlGattService.java +2 −0 Original line number Diff line number Diff line Loading @@ -1636,6 +1636,8 @@ public class MediaControlGattService implements MediaControlGattServiceInterface Log.d(TAG, "Destroy"); } mAdapterService.unregisterBluetoothStateCallback(mBluetoothStateChangeCallback); if (mBluetoothGattServer == null) { return; } Loading
android/app/src/com/android/bluetooth/tbs/TbsGatt.java +6 −2 Original line number Diff line number Diff line Loading @@ -254,8 +254,10 @@ public class TbsGatt { TbsGatt(TbsService tbsService) { mContext = tbsService; mAdapterService = Objects.requireNonNull(AdapterService.getAdapterService(), "AdapterService shouldn't be null when creating MediaControlCattService"); mAdapterService = Objects.requireNonNull( AdapterService.getAdapterService(), "AdapterService shouldn't be null when creating TbsGatt"); mAdapterService.registerBluetoothStateCallback( mContext.getMainExecutor(), mBluetoothStateChangeCallback); Loading Loading @@ -363,6 +365,8 @@ public class TbsGatt { } public void cleanup() { mAdapterService.unregisterBluetoothStateCallback(mBluetoothStateChangeCallback); if (mBluetoothGattServer == null) { return; } Loading