Fixed Mini player visibility

This commit is contained in:
Prathamesh More 2021-10-11 11:46:29 +05:30
parent 7c0701efad
commit c5c4144973

View file

@ -132,6 +132,7 @@ abstract class AbsSlidingMusicPanelActivity : AbsMusicServiceActivity() {
private fun setupBottomSheet() { private fun setupBottomSheet() {
bottomSheetBehavior = from(binding.slidingPanel) as RetroBottomSheetBehavior bottomSheetBehavior = from(binding.slidingPanel) as RetroBottomSheetBehavior
bottomSheetBehavior.addBottomSheetCallback(bottomSheetCallbackList) bottomSheetBehavior.addBottomSheetCallback(bottomSheetCallbackList)
setMiniPlayerAlphaProgress(0F)
} }
override fun onResume() { override fun onResume() {
@ -158,6 +159,7 @@ abstract class AbsSlidingMusicPanelActivity : AbsMusicServiceActivity() {
} }
fun expandPanel() { fun expandPanel() {
setMiniPlayerAlphaProgress(1.0f)
bottomSheetBehavior.state = STATE_EXPANDED bottomSheetBehavior.state = STATE_EXPANDED
} }