Notification filter changes.
Bug: 27403688 Change-Id: I560ab6fc4a46673c0be4244b24f90e7c937b0006
This commit is contained in:
@@ -126,12 +126,16 @@ public class ManageApplications extends InstrumentedFragment
|
||||
public static final int FILTER_APPS_ENABLED = 3;
|
||||
public static final int FILTER_APPS_DISABLED = 4;
|
||||
public static final int FILTER_APPS_BLOCKED = 5;
|
||||
public static final int FILTER_APPS_PERSONAL = 6;
|
||||
public static final int FILTER_APPS_WORK = 7;
|
||||
public static final int FILTER_APPS_WITH_DOMAIN_URLS = 8;
|
||||
public static final int FILTER_APPS_USAGE_ACCESS = 9;
|
||||
public static final int FILTER_APPS_WITH_OVERLAY = 10;
|
||||
public static final int FILTER_APPS_WRITE_SETTINGS = 11;
|
||||
public static final int FILTER_APPS_SILENT = 6;
|
||||
public static final int FILTER_APPS_SENSITIVE = 7;
|
||||
public static final int FILTER_APPS_HIDE_NOTIFICATIONS = 8;
|
||||
public static final int FILTER_APPS_PRIORITY = 9;
|
||||
public static final int FILTER_APPS_PERSONAL = 10;
|
||||
public static final int FILTER_APPS_WORK = 11;
|
||||
public static final int FILTER_APPS_WITH_DOMAIN_URLS = 12;
|
||||
public static final int FILTER_APPS_USAGE_ACCESS = 13;
|
||||
public static final int FILTER_APPS_WITH_OVERLAY = 14;
|
||||
public static final int FILTER_APPS_WRITE_SETTINGS = 15;
|
||||
|
||||
// This is the string labels for the filter modes above, the order must be kept in sync.
|
||||
public static final int[] FILTER_LABELS = new int[]{
|
||||
@@ -141,6 +145,10 @@ public class ManageApplications extends InstrumentedFragment
|
||||
R.string.filter_enabled_apps, // Enabled
|
||||
R.string.filter_apps_disabled, // Disabled
|
||||
R.string.filter_notif_blocked_apps, // Blocked Notifications
|
||||
R.string.filter_notif_silent, // Silenced Notifications
|
||||
R.string.filter_notif_sensitive_apps, // Sensitive Notifications
|
||||
R.string.filter_notif_hide_notifications_apps, // Sensitive Notifications
|
||||
R.string.filter_notif_priority_apps, // Priority Notifications
|
||||
R.string.filter_personal_apps, // Personal
|
||||
R.string.filter_work_apps, // Work
|
||||
R.string.filter_with_domain_urls_apps, // Domain URLs
|
||||
@@ -159,6 +167,10 @@ public class ManageApplications extends InstrumentedFragment
|
||||
ApplicationsState.FILTER_ALL_ENABLED, // Enabled
|
||||
ApplicationsState.FILTER_DISABLED, // Disabled
|
||||
AppStateNotificationBridge.FILTER_APP_NOTIFICATION_BLOCKED, // Blocked Notifications
|
||||
AppStateNotificationBridge.FILTER_APP_NOTIFICATION_SILENCED, // Silenced Notifications
|
||||
AppStateNotificationBridge.FILTER_APP_NOTIFICATION_HIDE_SENSITIVE, // Sensitive Notifications
|
||||
AppStateNotificationBridge.FILTER_APP_NOTIFICATION_HIDE_ALL, // Hide all Notifications
|
||||
AppStateNotificationBridge.FILTER_APP_NOTIFICATION_PRIORITY, // Priority Notifications
|
||||
ApplicationsState.FILTER_PERSONAL, // Personal
|
||||
ApplicationsState.FILTER_WORK, // Work
|
||||
ApplicationsState.FILTER_WITH_DOMAIN_URLS, // Apps with Domain URLs
|
||||
@@ -343,6 +355,10 @@ public class ManageApplications extends InstrumentedFragment
|
||||
}
|
||||
if (mListType == LIST_TYPE_NOTIFICATION) {
|
||||
mFilterAdapter.enableFilter(FILTER_APPS_BLOCKED);
|
||||
mFilterAdapter.enableFilter(FILTER_APPS_SILENT);
|
||||
mFilterAdapter.enableFilter(FILTER_APPS_SENSITIVE);
|
||||
mFilterAdapter.enableFilter(FILTER_APPS_HIDE_NOTIFICATIONS);
|
||||
mFilterAdapter.enableFilter(FILTER_APPS_PRIORITY);
|
||||
}
|
||||
if (mListType == LIST_TYPE_HIGH_POWER) {
|
||||
mFilterAdapter.enableFilter(FILTER_APPS_POWER_WHITELIST_ALL);
|
||||
|
Reference in New Issue
Block a user