Merge "Fix Bluetooth device Settings checkbox issue on clicking "Input device"" into mnc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
fb32790adc
@@ -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