Fix UI issue with Bluetooth Settings.

When a profile fails to connect, the preference was getting unset.

Patch generated in conversation with Jake Hamby.

Bug: 5526404
Change-Id: I27ab8d337b6d121f8d369841d3f9a691293ef922
This commit is contained in:
Jaikumar Ganesh
2011-10-27 16:23:30 -07:00
parent d27fa50a0a
commit f5754a078c

View File

@@ -332,7 +332,7 @@ public final class DeviceProfilesSettings extends SettingsPreferenceFragment
* Gray out checkbox while connecting and disconnecting * Gray out checkbox while connecting and disconnecting
*/ */
profilePref.setEnabled(!mCachedDevice.isBusy()); profilePref.setEnabled(!mCachedDevice.isBusy());
profilePref.setChecked(mCachedDevice.isConnectedProfile(profile)); profilePref.setChecked(profile.isPreferred(device));
profilePref.setSummary(profile.getSummaryResourceForDevice(device)); profilePref.setSummary(profile.getSummaryResourceForDevice(device));
} }