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

Commit c3508cfb authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Do not ignore views that are GONE" into sc-dev am: 4d2b82b0

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14521253

Change-Id: Ica9acdbaa03fbe481c68b6dcce7c1360a86a345f
parents 8b01f112 4d2b82b0
Loading
Loading
Loading
Loading
+9 −7
Original line number Diff line number Diff line
@@ -45,6 +45,7 @@ class IgnorableChildLinearLayout @JvmOverloads constructor(
        super.onMeasure(widthMeasureSpec, heightMeasureSpec)
        if (ignoreLastView && childCount > 0) {
            val lastView = getChildAt(childCount - 1)
            if (lastView.visibility != GONE) {
                val lp = lastView.layoutParams as MarginLayoutParams
                if (orientation == VERTICAL) {
                    val height = lastView.measuredHeight + lp.bottomMargin + lp.topMargin
@@ -56,3 +57,4 @@ class IgnorableChildLinearLayout @JvmOverloads constructor(
            }
        }
    }
}
 No newline at end of file