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

Commit fcf13527 authored by David Lin's avatar David Lin Committed by Android (Google) Code Review
Browse files

Merge "[RESTRICT AUTOMERGE] Messaging child requestLayout" into 24D1-dev

parents 737f1b37 bc0a44df
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -92,6 +92,8 @@ public class MessagingLinearLayout extends ViewGroup {
            final View child = getChildAt(i);
            final LayoutParams lp = (LayoutParams) child.getLayoutParams();
            lp.hide = true;
            // Child always needs to be measured to calculate hide property correctly in onMeasure.
            child.requestLayout();
            if (child instanceof MessagingChild) {
                MessagingChild messagingChild = (MessagingChild) child;
                // Whenever we encounter the message first, it's always first in the layout