From af50636693c72eb7d49a235f276b5b3374b4321e Mon Sep 17 00:00:00 2001 From: roiacult Date: Mon, 15 Jun 2020 18:01:01 +0100 Subject: [PATCH] cleaning up & prepare for new release --- app/src/main/res/layout/search.xml | 2 +- backdrop/src/main/java/com/roacult/backdrop/BackdropLayout.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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