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

Commit 9deb4853 authored by Ibrahim Yilmaz's avatar Ibrahim Yilmaz
Browse files

Remove Flag messaging_child_request_layout


Test: Presubmit
Flag: EXEMPT flag removal
Former Flag: android.widget.flags.messaging_child_request_layout
Bug: 409607209
Change-Id: Ic28e48196c026fd144e40509b79ca712fafef61a
parent 19fe5761
Loading
Loading
Loading
Loading
+0 −10
Original line number Diff line number Diff line
@@ -48,16 +48,6 @@ flag {
    }
}

flag {
  name: "messaging_child_request_layout"
  namespace: "systemui"
  description: "MessagingChild always needs to be measured during MessagingLinearLayout onMeasure."
  bug: "324537506"
  metadata {
    purpose: PURPOSE_BUGFIX
  }
}

flag {
  name: "drop_non_existing_messages"
  namespace: "systemui"
+1 −4
Original line number Diff line number Diff line
@@ -17,7 +17,6 @@
package com.android.internal.widget;

import static android.app.Flags.notificationsRedesignTemplates;
import static android.widget.flags.Flags.messagingChildRequestLayout;

import android.annotation.Nullable;
import android.annotation.Px;
@@ -104,9 +103,7 @@ public class MessagingLinearLayout extends ViewGroup {
            final LayoutParams lp = (LayoutParams) child.getLayoutParams();
            lp.hide = true;
            // Child always needs to be measured to calculate hide property correctly in onMeasure.
            if (messagingChildRequestLayout()) {
            child.requestLayout();
            }
            if (child instanceof MessagingChild) {
                MessagingChild messagingChild = (MessagingChild) child;
                // Whenever we encounter the message first, it's always first in the layout