Fix Bluetooth device Settings checkbox issue on clicking "Input device"
Bug: 19937357 Change-Id: I6f74577a062df407e50972b84dd4e5d7d2da529b
This commit is contained in:
@@ -263,7 +263,6 @@ public final class DeviceProfilesSettings extends DialogFragment implements
|
||||
} else {
|
||||
if (profile instanceof MapProfile) {
|
||||
mCachedDevice.setMessagePermissionChoice(BluetoothDevice.ACCESS_ALLOWED);
|
||||
refreshProfilePreference(profilePref, profile);
|
||||
}
|
||||
if (profile.isPreferred(device)) {
|
||||
// profile is preferred but not connected: disable auto-connect
|
||||
@@ -271,12 +270,12 @@ public final class DeviceProfilesSettings extends DialogFragment implements
|
||||
mCachedDevice.connectProfile(profile);
|
||||
} else {
|
||||
profile.setPreferred(device, false);
|
||||
refreshProfilePreference(profilePref, profile);
|
||||
}
|
||||
} else {
|
||||
profile.setPreferred(device, true);
|
||||
mCachedDevice.connectProfile(profile);
|
||||
}
|
||||
refreshProfilePreference(profilePref, profile);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user