auto import from //branches/cupcake/...@131421
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user