Prevent whitelisted apps from blocking and silencing
Change-Id: I34cb5c2c59d56b68ed1500c8c79cd65676c0af25 Fixes: 35841524 Test: manual
This commit is contained in:
@@ -218,7 +218,7 @@ public class AppNotificationSettings extends NotificationSettingsBase {
|
||||
}
|
||||
|
||||
private void setupBlock() {
|
||||
if (mAppRow.systemApp) {
|
||||
if (mAppRow.systemApp && !mAppRow.banned) {
|
||||
setVisible(mBlock, false);
|
||||
} else {
|
||||
mBlock.setDisabledByAdmin(mSuspendedAppsAdmin);
|
||||
@@ -243,6 +243,9 @@ public class AppNotificationSettings extends NotificationSettingsBase {
|
||||
setVisible(category, !banned);
|
||||
}
|
||||
setVisible(mBadge, !banned);
|
||||
if (mAppRow.systemApp && !mAppRow.banned) {
|
||||
setVisible(mBlock, false);
|
||||
}
|
||||
}
|
||||
|
||||
private Comparator<NotificationChannel> mChannelComparator =
|
||||
|
Reference in New Issue
Block a user