Loading src/com/android/bluetooth/sap/SapService.java +8 −6 Original line number Diff line number Diff line Loading @@ -745,13 +745,15 @@ public class SapService extends ProfileService { if (DEBUG) Log.d(TAG,"ACL disconnected for " + device); if (mRemoteDevice.equals(device) && mRemoveTimeoutMsg) { if (mRemoteDevice.equals(device)) { if (mRemoveTimeoutMsg) { // Send any pending timeout now, as ACL got disconnected. cancelUserTimeoutAlarm(); mSessionStatusHandler.removeMessages(USER_TIMEOUT); sendCancelUserConfirmationIntent(mRemoteDevice); } mIsWaitingAuthorization = false; mRemoveTimeoutMsg = false; setState(BluetoothSap.STATE_DISCONNECTED); // Ensure proper cleanup, and prepare for new connect. mSessionStatusHandler.sendEmptyMessage(MSG_SERVERSESSION_CLOSE); } Loading Loading
src/com/android/bluetooth/sap/SapService.java +8 −6 Original line number Diff line number Diff line Loading @@ -745,13 +745,15 @@ public class SapService extends ProfileService { if (DEBUG) Log.d(TAG,"ACL disconnected for " + device); if (mRemoteDevice.equals(device) && mRemoveTimeoutMsg) { if (mRemoteDevice.equals(device)) { if (mRemoveTimeoutMsg) { // Send any pending timeout now, as ACL got disconnected. cancelUserTimeoutAlarm(); mSessionStatusHandler.removeMessages(USER_TIMEOUT); sendCancelUserConfirmationIntent(mRemoteDevice); } mIsWaitingAuthorization = false; mRemoveTimeoutMsg = false; setState(BluetoothSap.STATE_DISCONNECTED); // Ensure proper cleanup, and prepare for new connect. mSessionStatusHandler.sendEmptyMessage(MSG_SERVERSESSION_CLOSE); } Loading