Don't filter demoted conversation from app subtext
If the notification channel is a demoted converation, we still want to include it as a notification channel that can bypass DND under the "apps" preference for DND. Test: manual, make RunSettingsRoboTests7 Fixes: 152765113 Change-Id: Ief072b19280b0dc6e6c37d2d46d51f045d42bb4e
This commit is contained in:
@@ -109,7 +109,7 @@ public class ZenModeBypassingAppsPreferenceController extends AbstractZenModePre
|
||||
String pkg = entry.info.packageName;
|
||||
for (NotificationChannel channel : mNotificationBackend
|
||||
.getNotificationChannelsBypassingDnd(pkg, entry.info.uid).getList()) {
|
||||
if (!TextUtils.isEmpty(channel.getConversationId())) {
|
||||
if (!TextUtils.isEmpty(channel.getConversationId()) && !channel.isDemoted()) {
|
||||
// conversation channels that bypass dnd will be shown on the People page
|
||||
continue;
|
||||
}
|
||||
|
Reference in New Issue
Block a user