Fixed Color fragment crash because of wrong layout and fixed play button animation on bottom sheet expanding.

This commit is contained in:
Prathamesh More 2022-01-19 15:28:27 +05:30
parent f56000a8be
commit 404bc0ff12
2 changed files with 3 additions and 1 deletions

View file

@ -227,11 +227,13 @@ abstract class AbsSlidingMusicPanelActivity : AbsMusicServiceActivity() {
setLightStatusBarAuto()
setLightNavigationBarAuto()
setTaskDescriptionColor(taskColor)
playerFragment?.onHide()
}
open fun onPanelExpanded() {
setMiniPlayerAlphaProgress(1F)
onPaletteColorChanged()
playerFragment?.onShow()
}
private fun setupSlidingUpPanel() {

View file

@ -43,7 +43,7 @@ import code.name.monkey.retromusic.util.color.MediaNotificationProcessor
import kotlin.math.sqrt
class ColorPlaybackControlsFragment :
AbsPlayerControlsFragment(R.layout.fragment_adaptive_player_playback_controls) {
AbsPlayerControlsFragment(R.layout.fragment_color_player_playback_controls) {
private var _binding: FragmentColorPlayerPlaybackControlsBinding? = null
private val binding get() = _binding!!