diff --git a/app/src/main/res/layout/search.xml b/app/src/main/res/layout/search.xml index a5a6a9f..34a704a 100644 --- a/app/src/main/res/layout/search.xml +++ b/app/src/main/res/layout/search.xml @@ -18,7 +18,7 @@ app:front_layout="@id/includedFront" app:back_layout="@id/includedBack" app:toolbarId="@id/toolbar" - app:peekHeight="200dp" + app:peekHeight="56dp" app:menuDrawable="@drawable/filter_variant" app:disable_when_open="true" app:front_header_radius="16dp" diff --git a/backdrop/src/main/java/com/roacult/backdrop/BackdropLayout.kt b/backdrop/src/main/java/com/roacult/backdrop/BackdropLayout.kt index 006e6b1..60702f7 100644 --- a/backdrop/src/main/java/com/roacult/backdrop/BackdropLayout.kt +++ b/backdrop/src/main/java/com/roacult/backdrop/BackdropLayout.kt @@ -244,6 +244,6 @@ class BackdropLayout @JvmOverloads constructor(context: Context, attribute : Att } private fun getTransitionHeight(): Float { - return Math.min(getBackLayout().height.toFloat(),height - peeckHeight) + return getBackLayout().height.toFloat().coerceAtMost(height - peeckHeight) } } \ No newline at end of file