Loading android/app/src/com/android/bluetooth/hid/HidDeviceService.java +5 −0 Original line number Original line Diff line number Diff line Loading @@ -657,6 +657,11 @@ public class HidDeviceService extends ProfileService { Log.d(TAG, "stop()"); Log.d(TAG, "stop()"); } } if (sHidDeviceService == null) { Log.w(TAG, "stop() called before start()"); return true; } setHidDeviceService(null); setHidDeviceService(null); if (mNativeAvailable) { if (mNativeAvailable) { mHidDeviceNativeInterface.cleanup(); mHidDeviceNativeInterface.cleanup(); Loading android/app/src/com/android/bluetooth/newavrcp/AvrcpTargetService.java +5 −0 Original line number Original line Diff line number Diff line Loading @@ -169,6 +169,11 @@ public class AvrcpTargetService extends ProfileService { protected boolean stop() { protected boolean stop() { Log.i(TAG, "Stopping the AVRCP Target Service"); Log.i(TAG, "Stopping the AVRCP Target Service"); if (sInstance == null) { Log.w(TAG, "stop() called before start()"); return true; } sInstance = null; sInstance = null; unregisterReceiver(mReceiver); unregisterReceiver(mReceiver); Loading Loading
android/app/src/com/android/bluetooth/hid/HidDeviceService.java +5 −0 Original line number Original line Diff line number Diff line Loading @@ -657,6 +657,11 @@ public class HidDeviceService extends ProfileService { Log.d(TAG, "stop()"); Log.d(TAG, "stop()"); } } if (sHidDeviceService == null) { Log.w(TAG, "stop() called before start()"); return true; } setHidDeviceService(null); setHidDeviceService(null); if (mNativeAvailable) { if (mNativeAvailable) { mHidDeviceNativeInterface.cleanup(); mHidDeviceNativeInterface.cleanup(); Loading
android/app/src/com/android/bluetooth/newavrcp/AvrcpTargetService.java +5 −0 Original line number Original line Diff line number Diff line Loading @@ -169,6 +169,11 @@ public class AvrcpTargetService extends ProfileService { protected boolean stop() { protected boolean stop() { Log.i(TAG, "Stopping the AVRCP Target Service"); Log.i(TAG, "Stopping the AVRCP Target Service"); if (sInstance == null) { Log.w(TAG, "stop() called before start()"); return true; } sInstance = null; sInstance = null; unregisterReceiver(mReceiver); unregisterReceiver(mReceiver); Loading