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

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

Merge "Do not ignore views that are GONE" into sc-dev

parents 3009a4d8 1b69a1d3
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