Only show one copy of each preference

Fixes: 37912144
Fixes: 37909560
Test: manual, load app settings for legacy and upgrade apps from
inline settings, click (i), and click back.

Change-Id: Ieb96cca03f2596fd44cd33facafa3d4af1fbc24d
This commit is contained in:
Julia Reynolds
2017-05-04 10:10:22 -04:00
parent efed517a8a
commit fc730aa947

View File

@@ -91,6 +91,8 @@ public class AppNotificationSettings extends NotificationSettingsBase {
if (getPreferenceScreen() != null) {
getPreferenceScreen().removeAll();
mChannelGroups.clear();
mShowLegacyChannelConfig = false;
}
addPreferencesFromResource(R.xml.app_notification_settings);