Clarify notification blocking in notification app list.

Change summary to: Normal (nothing blocked), Partially blocked
(at least one topic blocked), or Totally blocked (entire app
blocked).

Allow filtering on apps that are partially or totally blocked.

Bug: 26882239
Change-Id: I29924147a97a3d1693b0286d48905485e11edf1d
This commit is contained in:
Julia Reynolds
2016-02-02 10:17:56 -05:00
parent cac0dddd2a
commit e07f385ae0
4 changed files with 21 additions and 2 deletions

View File

@@ -821,6 +821,8 @@ public class InstalledAppDetails extends AppInfoBase
public static CharSequence getNotificationSummary(AppRow appRow, Context context) {
if (appRow.banned) {
return context.getString(R.string.notifications_disabled);
} else if (appRow.bannedTopics) {
return context.getString(R.string.notifications_partially_disabled);
}
return context.getString(R.string.notifications_enabled);
}