Loading packages/SystemUI/src/com/android/systemui/qs/tileimpl/IgnorableChildLinearLayout.kt +9 −7 Original line number Diff line number Diff line Loading @@ -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 Loading @@ -56,3 +57,4 @@ class IgnorableChildLinearLayout @JvmOverloads constructor( } } } } No newline at end of file Loading
packages/SystemUI/src/com/android/systemui/qs/tileimpl/IgnorableChildLinearLayout.kt +9 −7 Original line number Diff line number Diff line Loading @@ -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 Loading @@ -56,3 +57,4 @@ class IgnorableChildLinearLayout @JvmOverloads constructor( } } } } No newline at end of file