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:
@@ -91,6 +91,8 @@ public class AppNotificationSettings extends NotificationSettingsBase {
|
|||||||
|
|
||||||
if (getPreferenceScreen() != null) {
|
if (getPreferenceScreen() != null) {
|
||||||
getPreferenceScreen().removeAll();
|
getPreferenceScreen().removeAll();
|
||||||
|
mChannelGroups.clear();
|
||||||
|
mShowLegacyChannelConfig = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
addPreferencesFromResource(R.xml.app_notification_settings);
|
addPreferencesFromResource(R.xml.app_notification_settings);
|
||||||
|
Reference in New Issue
Block a user