From f5754a078c3a8506d2320375e74fefdddd560637 Mon Sep 17 00:00:00 2001 From: Jaikumar Ganesh Date: Thu, 27 Oct 2011 16:23:30 -0700 Subject: [PATCH] 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 --- src/com/android/settings/bluetooth/DeviceProfilesSettings.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/android/settings/bluetooth/DeviceProfilesSettings.java b/src/com/android/settings/bluetooth/DeviceProfilesSettings.java index a840982288f..67d2258573b 100755 --- a/src/com/android/settings/bluetooth/DeviceProfilesSettings.java +++ b/src/com/android/settings/bluetooth/DeviceProfilesSettings.java @@ -332,7 +332,7 @@ public final class DeviceProfilesSettings extends SettingsPreferenceFragment * Gray out checkbox while connecting and disconnecting */ profilePref.setEnabled(!mCachedDevice.isBusy()); - profilePref.setChecked(mCachedDevice.isConnectedProfile(profile)); + profilePref.setChecked(profile.isPreferred(device)); profilePref.setSummary(profile.getSummaryResourceForDevice(device)); }