From 7537d135f2f284cee3924e0458d6146d584450d2 Mon Sep 17 00:00:00 2001 From: Alexander Capehart Date: Tue, 2 Jan 2024 15:38:34 -0700 Subject: [PATCH] ui: remove redundant sheet content inset --- .../java/org/oxycblt/auxio/ui/BottomSheetContentBehavior.kt | 6 ------ 1 file changed, 6 deletions(-) diff --git a/app/src/main/java/org/oxycblt/auxio/ui/BottomSheetContentBehavior.kt b/app/src/main/java/org/oxycblt/auxio/ui/BottomSheetContentBehavior.kt index c8fc0305c..238086454 100644 --- a/app/src/main/java/org/oxycblt/auxio/ui/BottomSheetContentBehavior.kt +++ b/app/src/main/java/org/oxycblt/auxio/ui/BottomSheetContentBehavior.kt @@ -68,12 +68,6 @@ class BottomSheetContentBehavior(context: Context, attributeSet: Attri if (consumed != lastConsumed) { logD("Consumed amount changed, re-applying insets") lastConsumed = consumed - - val insets = lastInsets - if (insets != null) { - child.dispatchApplyWindowInsets(insets) - } - lastInsets?.let(child::dispatchApplyWindowInsets) measureContent(parent, child, consumed) layoutContent(child)