Loading src/com/android/bluetooth/hfpclient/HeadsetClientService.java +5 −5 Original line number Original line Diff line number Diff line Loading @@ -116,6 +116,11 @@ public class HeadsetClientService extends ProfileService { Log.w(TAG, "stop() called without start()"); Log.w(TAG, "stop() called without start()"); return false; return false; } } // Stop the HfpClientConnectionService. Intent stopIntent = new Intent(this, HfpClientConnectionService.class); sHeadsetClientService.stopService(stopIntent); setHeadsetClientService(null); setHeadsetClientService(null); unregisterReceiver(mBroadcastReceiver); unregisterReceiver(mBroadcastReceiver); Loading @@ -128,11 +133,6 @@ public class HeadsetClientService extends ProfileService { it.remove(); it.remove(); } } // Stop the HfpClientConnectionService. Intent stopIntent = new Intent(this, HfpClientConnectionService.class); stopIntent.putExtra(HFP_CLIENT_STOP_TAG, true); startService(stopIntent); // Stop the handler thread // Stop the handler thread mSmThread.quit(); mSmThread.quit(); mSmThread = null; mSmThread = null; Loading Loading
src/com/android/bluetooth/hfpclient/HeadsetClientService.java +5 −5 Original line number Original line Diff line number Diff line Loading @@ -116,6 +116,11 @@ public class HeadsetClientService extends ProfileService { Log.w(TAG, "stop() called without start()"); Log.w(TAG, "stop() called without start()"); return false; return false; } } // Stop the HfpClientConnectionService. Intent stopIntent = new Intent(this, HfpClientConnectionService.class); sHeadsetClientService.stopService(stopIntent); setHeadsetClientService(null); setHeadsetClientService(null); unregisterReceiver(mBroadcastReceiver); unregisterReceiver(mBroadcastReceiver); Loading @@ -128,11 +133,6 @@ public class HeadsetClientService extends ProfileService { it.remove(); it.remove(); } } // Stop the HfpClientConnectionService. Intent stopIntent = new Intent(this, HfpClientConnectionService.class); stopIntent.putExtra(HFP_CLIENT_STOP_TAG, true); startService(stopIntent); // Stop the handler thread // Stop the handler thread mSmThread.quit(); mSmThread.quit(); mSmThread = null; mSmThread = null; Loading