Expand peek height of tracking sheet

This commit is contained in:
Jays2Kings 2021-03-22 16:16:39 -04:00
parent 12ba03db05
commit 92af8d508e

View File

@ -45,7 +45,7 @@ class TrackingBottomSheet(private val controller: MangaDetailsController) :
sheetBehavior = BottomSheetBehavior.from(view.parent as ViewGroup) sheetBehavior = BottomSheetBehavior.from(view.parent as ViewGroup)
setEdgeToEdge(activity, view) setEdgeToEdge(activity, view)
val height = activity.window.decorView.rootWindowInsets.systemWindowInsetBottom val height = activity.window.decorView.rootWindowInsets.systemWindowInsetBottom
sheetBehavior.peekHeight = 380.dpToPx + height sheetBehavior.peekHeight = 500.dpToPx + height
sheetBehavior.addBottomSheetCallback( sheetBehavior.addBottomSheetCallback(
object : BottomSheetBehavior.BottomSheetCallback() { object : BottomSheetBehavior.BottomSheetCallback() {