Fix doubling of channel listing

Test: toggle a notification group on/off
Change-Id: Ia93cf8084aee0c886a591301cba764975e5e0147
Fixes: 124384280
This commit is contained in:
Julia Reynolds
2019-02-15 15:15:31 -05:00
parent 3f95dfefd5
commit 0b6d652d20
2 changed files with 4 additions and 2 deletions

View File

@@ -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;
}