Prevent non-blockable app from being blocked
In the recent notifications display. Test: manual Change-Id: I0b14dfbcb8c4a971bb028def7751d083d37958de Fixes: 111863327
This commit is contained in:
@@ -78,6 +78,12 @@ public class NotificationBackend {
|
||||
return row;
|
||||
}
|
||||
|
||||
public boolean isBlockable(Context context, ApplicationInfo info) {
|
||||
final boolean blocked = getNotificationsBanned(info.packageName, info.uid);
|
||||
final boolean systemApp = isSystemApp(context, info);
|
||||
return !systemApp || (systemApp && blocked);
|
||||
}
|
||||
|
||||
public AppRow loadAppRow(Context context, PackageManager pm, PackageInfo app) {
|
||||
final AppRow row = loadAppRow(context, pm, app.applicationInfo);
|
||||
recordCanBeBlocked(context, pm, app, row);
|
||||
|
Reference in New Issue
Block a user