From f457e613d5d91322e0c967fb801899d55e3db9e5 Mon Sep 17 00:00:00 2001 From: Syed Ibrahim M Date: Fri, 25 May 2012 15:28:57 +0530 Subject: [PATCH] Fix to update the checkbox attribute values after connect() is called; This is to make sure for profiles like HID where re-connection can happen only from the device side, the UI is updated to be in sync with the right priority of the corresponding profiles Change-Id: I4a17d8bbf584e6e64519fe3508bccd5d167a020d --- src/com/android/settings/bluetooth/CachedBluetoothDevice.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/com/android/settings/bluetooth/CachedBluetoothDevice.java b/src/com/android/settings/bluetooth/CachedBluetoothDevice.java index 2aa0566d0c7..e28e064fe52 100755 --- a/src/com/android/settings/bluetooth/CachedBluetoothDevice.java +++ b/src/com/android/settings/bluetooth/CachedBluetoothDevice.java @@ -260,6 +260,8 @@ final class CachedBluetoothDevice implements Comparable { // Reset the only-show-one-error-dialog tracking variable mIsConnectingErrorPossible = true; connectInt(profile); + // Refresh the UI based on profile.connect() call + refresh(); } synchronized void connectInt(LocalBluetoothProfile profile) {