diff --git a/src/com/android/settings/bluetooth/A2dpProfile.java b/src/com/android/settings/bluetooth/A2dpProfile.java index fbb71ecee32..fdf332521ea 100755 --- a/src/com/android/settings/bluetooth/A2dpProfile.java +++ b/src/com/android/settings/bluetooth/A2dpProfile.java @@ -167,11 +167,15 @@ final class A2dpProfile implements LocalBluetoothProfile { int state = mService.getConnectionState(device); switch (state) { case BluetoothProfile.STATE_DISCONNECTED: + { + setPreferred(device, false); return R.string.bluetooth_a2dp_profile_summary_use_for; - + } case BluetoothProfile.STATE_CONNECTED: + { + setPreferred(device, true); return R.string.bluetooth_a2dp_profile_summary_connected; - + } default: return Utils.getConnectionStateSummary(state); } diff --git a/src/com/android/settings/bluetooth/DeviceProfilesSettings.java b/src/com/android/settings/bluetooth/DeviceProfilesSettings.java index 67d2258573b..c4853cf2304 100755 --- a/src/com/android/settings/bluetooth/DeviceProfilesSettings.java +++ b/src/com/android/settings/bluetooth/DeviceProfilesSettings.java @@ -332,8 +332,8 @@ public final class DeviceProfilesSettings extends SettingsPreferenceFragment * Gray out checkbox while connecting and disconnecting */ profilePref.setEnabled(!mCachedDevice.isBusy()); - profilePref.setChecked(profile.isPreferred(device)); profilePref.setSummary(profile.getSummaryResourceForDevice(device)); + profilePref.setChecked(profile.isPreferred(device)); } private LocalBluetoothProfile getProfileOf(Preference pref) {