OSDN Git Service

Fix UI checkbox issue while disabling "Phone Audio" in Blueotooth Settings.
authorSanket Padawe <sanketpadawe@google.com>
Tue, 2 Jun 2015 18:13:01 +0000 (11:13 -0700)
committerSanket Padawe <sanketpadawe@google.com>
Tue, 2 Jun 2015 18:13:01 +0000 (11:13 -0700)
Bug: 18048121
Change-Id: If837a58a4840be3d5b9f3cc16ecb261d9ab4420a

src/com/android/settings/bluetooth/DeviceProfilesSettings.java

index 1df6275..7161929 100755 (executable)
@@ -275,9 +275,9 @@ public final class DeviceProfilesSettings extends SettingsPreferenceFragment
                 profile.setPreferred(device.getDevice(), false);
                 if (profile instanceof MapProfile) {
                     device.setMessagePermissionChoice(BluetoothDevice.ACCESS_REJECTED);
-                    refreshProfilePreference(
-                            (CheckBoxPreference)findPreference(profile.toString()), profile);
                 }
+                refreshProfilePreference(
+                        (CheckBoxPreference)findPreference(profile.toString()), profile);
             }
         };