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:
@@ -63,7 +63,11 @@ public class AppStateNotificationBridge extends AppStateBaseBridge {
|
||||
|
||||
@Override
|
||||
public boolean filterApp(AppEntry info) {
|
||||
return info.extraInfo != null && ((AppRow) info.extraInfo).banned;
|
||||
if (info == null) {
|
||||
return false;
|
||||
}
|
||||
AppRow row = (AppRow) info.extraInfo;
|
||||
return row.banned || row.bannedTopics;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user