Revert "detail: try to fix list overlap on redmi/honor"
This reverts commit f62d929c37.
This commit is contained in:
@@ -68,10 +68,6 @@ class BottomSheetContentBehavior<V : View>(context: Context, attributeSet: Attri
|
|||||||
if (consumed != lastConsumed) {
|
if (consumed != lastConsumed) {
|
||||||
L.d("Consumed amount changed, re-applying insets")
|
L.d("Consumed amount changed, re-applying insets")
|
||||||
lastConsumed = consumed
|
lastConsumed = consumed
|
||||||
// Force insets to be recalculated. On some OEM devices (MIUI, EMUI),
|
|
||||||
// initial inset dispatch happens before the sheet is ready, and without
|
|
||||||
// this explicit request, content never receives correct bottom padding.
|
|
||||||
child.requestApplyInsets()
|
|
||||||
lastInsets?.let(child::dispatchApplyWindowInsets)
|
lastInsets?.let(child::dispatchApplyWindowInsets)
|
||||||
measureContent(parent, child)
|
measureContent(parent, child)
|
||||||
layoutContent(child)
|
layoutContent(child)
|
||||||
@@ -120,19 +116,6 @@ class BottomSheetContentBehavior<V : View>(context: Context, attributeSet: Attri
|
|||||||
setup = true
|
setup = true
|
||||||
}
|
}
|
||||||
|
|
||||||
// Ensure consumed value is up-to-date on every layout pass. This handles cases
|
|
||||||
// where configuration changes (split-screen resize) trigger layout before
|
|
||||||
// onDependentViewChanged is called.
|
|
||||||
val dep = dep
|
|
||||||
if (dep != null) {
|
|
||||||
val behavior = dep.coordinatorLayoutBehavior as BackportBottomSheetBehavior
|
|
||||||
val consumed = behavior.calculateConsumedByBar()
|
|
||||||
if (consumed != Int.MIN_VALUE && consumed != lastConsumed) {
|
|
||||||
lastConsumed = consumed
|
|
||||||
child.requestApplyInsets()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user