summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/bluetooth
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2009-02-13 12:57:53 -0800
committerThe Android Open Source Project <initial-contribution@android.com>2009-02-13 12:57:53 -0800
commitb9f5851434b568fa427613fbc00e0b4cf9e15132 (patch)
treec82cbd53e469ea82e705c8724f23e733f7e2c655 /src/com/android/settings/bluetooth
parent1feaa85791b3b5cc66a16142afc2259a2356bc9e (diff)
downloadpackages_apps_settings-b9f5851434b568fa427613fbc00e0b4cf9e15132.zip
packages_apps_settings-b9f5851434b568fa427613fbc00e0b4cf9e15132.tar.gz
packages_apps_settings-b9f5851434b568fa427613fbc00e0b4cf9e15132.tar.bz2
auto import from //branches/cupcake/...@131421
Diffstat (limited to 'src/com/android/settings/bluetooth')
-rw-r--r--src/com/android/settings/bluetooth/ConnectSpecificProfilesActivity.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/com/android/settings/bluetooth/ConnectSpecificProfilesActivity.java b/src/com/android/settings/bluetooth/ConnectSpecificProfilesActivity.java
index f2f3bdf..b4a8ae0 100644
--- a/src/com/android/settings/bluetooth/ConnectSpecificProfilesActivity.java
+++ b/src/com/android/settings/bluetooth/ConnectSpecificProfilesActivity.java
@@ -229,9 +229,12 @@ public class ConnectSpecificProfilesActivity extends PreferenceActivity
for (Profile profile : mDevice.getProfiles()) {
CheckBoxPreference profilePref =
(CheckBoxPreference) findPreference(profile.toString());
- if (profilePref == null) continue;
-
- refreshProfilePreference(profilePref, profile);
+ if (profilePref == null) {
+ profilePref = createProfilePreference(profile);
+ mProfileContainer.addPreference(profilePref);
+ } else {
+ refreshProfilePreference(profilePref, profile);
+ }
}
}