Merge "Fix doubling of channel listing"
This commit is contained in:
committed by
Android (Google) Code Review
commit
6dca5ef8e9
@@ -252,7 +252,7 @@ public class AppNotificationSettings extends NotificationSettingsBase {
|
||||
int childCount = groupGroup.getPreferenceCount();
|
||||
for (int i = 0; i < childCount; i++) {
|
||||
Preference pref = groupGroup.getPreference(i);
|
||||
if (pref instanceof MasterCheckBoxPreference) {
|
||||
if (pref instanceof ChannelSummaryPreference) {
|
||||
toRemove.add(pref);
|
||||
}
|
||||
}
|
||||
|
@@ -309,7 +309,9 @@ abstract public class NotificationSettingsBase extends DashboardFragment {
|
||||
return true;
|
||||
}
|
||||
});
|
||||
parent.addPreference(channelPref);
|
||||
if (parent.findPreference(channelPref.getKey()) == null) {
|
||||
parent.addPreference(channelPref);
|
||||
}
|
||||
return channelPref;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user