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

Commit 76807053 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix inflating content views after removal" into rvc-dev

parents c805ce31 a052c0ca
Loading
Loading
Loading
Loading
+9 −7
Original line number Diff line number Diff line
@@ -807,7 +807,7 @@ public class ExpandableNotificationRow extends ActivatableNotificationView
        // TODO: Move inflation logic out of this call
        if (mIsChildInGroup != isChildInGroup) {
            mIsChildInGroup = isChildInGroup;
            if (mIsLowPriority) {
            if (!isRemoved() && mIsLowPriority) {
                RowContentBindParams params = mRowContentBindStage.getStageParams(mEntry);
                params.setUseLowPriority(mIsLowPriority);
                mRowContentBindStage.requestRebind(mEntry, null /* callback */);
@@ -1576,6 +1576,7 @@ public class ExpandableNotificationRow extends ActivatableNotificationView
        // TODO: Move inflation logic out of this call and remove this method
        if (mNeedsRedaction != needsRedaction) {
            mNeedsRedaction = needsRedaction;
            if (!isRemoved()) {
                RowContentBindParams params = mRowContentBindStage.getStageParams(mEntry);
                if (needsRedaction) {
                    params.requireContentViews(FLAG_CONTENT_VIEW_PUBLIC);
@@ -1585,6 +1586,7 @@ public class ExpandableNotificationRow extends ActivatableNotificationView
                mRowContentBindStage.requestRebind(mEntry, null /* callback */);
            }
        }
    }

    public interface ExpansionLogger {
        void logNotificationExpansion(String key, boolean userAction, boolean expanded);