Merge commit '7805fa99ffce21bb9b016ffdd5375d331b9a8a54' * commit '7805fa99ffce21bb9b016ffdd5375d331b9a8a54': Disconnect dock only if its connected.
This commit is contained in:
@@ -719,9 +719,12 @@ public class DockService extends Service implements AlertDialog.OnMultiChoiceCli
|
||||
// Checked but not connected
|
||||
callConnect = true;
|
||||
} else if (!mCheckedItems[i]) {
|
||||
// Unchecked but connected
|
||||
if (DEBUG) Log.d(TAG, "applyBtSettings - Disconnecting");
|
||||
cachedDevice.disconnect(mProfiles[i]);
|
||||
// Unchecked, may or may not be connected.
|
||||
int status = profileManager.getConnectionStatus(cachedDevice.getDevice());
|
||||
if (SettingsBtStatus.isConnectionStatusConnected(status)) {
|
||||
if (DEBUG) Log.d(TAG, "applyBtSettings - Disconnecting");
|
||||
cachedDevice.disconnect(mProfiles[i]);
|
||||
}
|
||||
}
|
||||
profileManager.setPreferred(device, mCheckedItems[i]);
|
||||
if (DEBUG) {
|
||||
|
Reference in New Issue
Block a user