summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/bluetooth/DeviceProfilesSettings.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/settings/bluetooth/DeviceProfilesSettings.java')
-rwxr-xr-xsrc/com/android/settings/bluetooth/DeviceProfilesSettings.java11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/com/android/settings/bluetooth/DeviceProfilesSettings.java b/src/com/android/settings/bluetooth/DeviceProfilesSettings.java
index 5dd70980b..ae42e3d0c 100755
--- a/src/com/android/settings/bluetooth/DeviceProfilesSettings.java
+++ b/src/com/android/settings/bluetooth/DeviceProfilesSettings.java
@@ -154,6 +154,7 @@ public final class DeviceProfilesSettings extends DialogFragment implements
dismiss();
return;
}
+ addPreferencesForProfiles();
refresh();
}
}
@@ -169,16 +170,6 @@ public final class DeviceProfilesSettings extends DialogFragment implements
mManager.setForegroundActivity(null);
}
- public void setDevice(CachedBluetoothDevice cachedDevice) {
- mCachedDevice = cachedDevice;
-
- if (isResumed()) {
- mCachedDevice.registerCallback(this);
- addPreferencesForProfiles();
- refresh();
- }
- }
-
private void addPreferencesForProfiles() {
mProfileContainer.removeAllViews();
for (LocalBluetoothProfile profile : mCachedDevice.getConnectableProfiles()) {