Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cbac5767 authored by Ibrahim Yilmaz's avatar Ibrahim Yilmaz
Browse files

[Notif Redaction] Inflate public single lines when type is not REDACTION_TYPE_NONE

Bug: 398853084
Flag: EXEMPT trivial bugfix
Test: Presubmit
Change-Id: Ifa59997611ff496387a45a1c9d35fb2ce176f16f
parent 55efeb24
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -17,7 +17,6 @@
package com.android.systemui.statusbar.notification.collection.inflation;

import static com.android.systemui.statusbar.NotificationLockscreenUserManager.REDACTION_TYPE_NONE;
import static com.android.systemui.statusbar.NotificationLockscreenUserManager.REDACTION_TYPE_SENSITIVE_CONTENT;
import static com.android.systemui.statusbar.notification.row.NotificationRowContentBinder.FLAG_CONTENT_VIEW_CONTRACTED;
import static com.android.systemui.statusbar.notification.row.NotificationRowContentBinder.FLAG_CONTENT_VIEW_EXPANDED;
import static com.android.systemui.statusbar.notification.row.NotificationRowContentBinder.FLAG_CONTENT_VIEW_PUBLIC;
@@ -276,7 +275,7 @@ public class NotificationRowBinderImpl implements NotificationRowBinder {

        if (LockscreenOtpRedaction.isSingleLineViewEnabled()) {
            if (inflaterParams.isChildInGroup()
                    && redactionType == REDACTION_TYPE_SENSITIVE_CONTENT) {
                    && redactionType != REDACTION_TYPE_NONE) {
                params.requireContentViews(FLAG_CONTENT_VIEW_PUBLIC_SINGLE_LINE);
            } else {
                params.markContentViewsFreeable(FLAG_CONTENT_VIEW_PUBLIC_SINGLE_LINE);