Loading src/com/android/settings/notification/NotificationAccessSettings.java +7 −0 Original line number Diff line number Diff line Loading @@ -65,6 +65,7 @@ public class NotificationAccessSettings extends EmptyTextSettings { private static final String TAG = "NotifAccessSettings"; private static final String ALLOWED_KEY = "allowed"; private static final String NOT_ALLOWED_KEY = "not_allowed"; private static final int MAX_CN_LENGTH = 500; private static final ManagedServiceSettings.Config CONFIG = new ManagedServiceSettings.Config.Builder() Loading Loading @@ -101,6 +102,12 @@ public class NotificationAccessSettings extends EmptyTextSettings { .setNoun(CONFIG.noun) .setSetting(CONFIG.setting) .setTag(CONFIG.tag) .setValidator(info -> { if (info.getComponentName().flattenToString().length() > MAX_CN_LENGTH) { return false; } return true; }) .build(); mServiceListing.addCallback(this::updateList); Loading Loading
src/com/android/settings/notification/NotificationAccessSettings.java +7 −0 Original line number Diff line number Diff line Loading @@ -65,6 +65,7 @@ public class NotificationAccessSettings extends EmptyTextSettings { private static final String TAG = "NotifAccessSettings"; private static final String ALLOWED_KEY = "allowed"; private static final String NOT_ALLOWED_KEY = "not_allowed"; private static final int MAX_CN_LENGTH = 500; private static final ManagedServiceSettings.Config CONFIG = new ManagedServiceSettings.Config.Builder() Loading Loading @@ -101,6 +102,12 @@ public class NotificationAccessSettings extends EmptyTextSettings { .setNoun(CONFIG.noun) .setSetting(CONFIG.setting) .setTag(CONFIG.tag) .setValidator(info -> { if (info.getComponentName().flattenToString().length() > MAX_CN_LENGTH) { return false; } return true; }) .build(); mServiceListing.addCallback(this::updateList); Loading