Fixed multiple Bluetooth Settings crashes.
+ Fixed a crash when selecting On/Off multiple times on an input device. + Fixed a crash when visiting different Bluetooth Settings after disabling an input device. Bug: 17402421 Change-Id: I23efa3a36ba8cf0df02cf41397586a10dae9e08c
This commit is contained in:
@@ -232,7 +232,7 @@ public final class DeviceProfilesSettings extends SettingsPreferenceFragment
|
||||
status == BluetoothProfile.STATE_CONNECTED;
|
||||
|
||||
if (isConnected) {
|
||||
askDisconnect(getActivity(), profile);
|
||||
askDisconnect(mManager.getForegroundActivity(), profile);
|
||||
} else {
|
||||
if (profile.isPreferred(device)) {
|
||||
// profile is preferred but not connected: disable auto-connect
|
||||
|
Reference in New Issue
Block a user