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
This commit is contained in:
Syed Ibrahim M
2012-05-25 15:28:57 +05:30
committed by Matthew Xie
parent c78d71e16c
commit f457e613d5

View File

@@ -260,6 +260,8 @@ final class CachedBluetoothDevice implements Comparable<CachedBluetoothDevice> {
// Reset the only-show-one-error-dialog tracking variable // Reset the only-show-one-error-dialog tracking variable
mIsConnectingErrorPossible = true; mIsConnectingErrorPossible = true;
connectInt(profile); connectInt(profile);
// Refresh the UI based on profile.connect() call
refresh();
} }
synchronized void connectInt(LocalBluetoothProfile profile) { synchronized void connectInt(LocalBluetoothProfile profile) {