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

Commit 2b0db74a authored by Selim Cinek's avatar Selim Cinek Committed by Android Git Automerger
Browse files

am 4d696690: Merge "Fixed a bug where redacted notifications had the wrong height" into mnc-dev

* commit '4d696690':
  Fixed a bug where redacted notifications had the wrong height
parents 1f67e4c8 4d696690
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -1764,6 +1764,7 @@ public class NotificationStackScrollLayout extends ViewGroup
    }

    private void onViewAddedInternal(View child) {
        updateHideSensitiveForChild(child);
        mStackScrollAlgorithm.notifyChildrenChanged(this);
        ((ExpandableView) child).setOnHeightChangedListener(this);
        generateAddAnimation(child, false /* fromMoreCard */);
@@ -1776,6 +1777,13 @@ public class NotificationStackScrollLayout extends ViewGroup
        }
    }

    private void updateHideSensitiveForChild(View child) {
        if (mAmbientState.isHideSensitive() && child instanceof ExpandableView) {
            ExpandableView expandableView = (ExpandableView) child;
            expandableView.setHideSensitiveForIntrinsicHeight(true);
        }
    }

    public void notifyGroupChildRemoved(View row) {
        onViewRemovedInternal(row);
    }