Merge pull request #1669 from mardous/dev

Fix bottom sheet bug
This commit is contained in:
Hemanth Savarala 2024-10-19 23:02:54 +05:30 committed by GitHub
commit f41a8002c6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -522,7 +522,7 @@ abstract class AbsSlidingMusicPanelActivity : AbsMusicServiceActivity(),
val heightOfBar = windowInsets.getBottomInsets() + dip(R.dimen.mini_player_height)
val heightOfBarWithTabs = heightOfBar + dip(R.dimen.bottom_nav_height)
if (hide) {
bottomSheetBehavior.peekHeight = -windowInsets.getBottomInsets()
bottomSheetBehavior.peekHeight = (-windowInsets.getBottomInsets()).coerceAtLeast(0)
bottomSheetBehavior.state = STATE_COLLAPSED
libraryViewModel.setFabMargin(
this,