Skip to content
This repository has been archived by the owner on Jul 4, 2024. It is now read-only.

Commit

Permalink
cleaning up & prepare for new release
Browse files Browse the repository at this point in the history
  • Loading branch information
roiacult committed Jun 15, 2020
1 parent c1fa464 commit af50636
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/src/main/res/layout/search.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

0 comments on commit af50636

Please sign in to comment.