Fixed Shuffle button margin

This commit is contained in:
Prathamesh More 2021-12-25 15:36:59 +05:30
parent bc7768f5ab
commit b4529e071f
3 changed files with 11 additions and 8 deletions

View file

@ -14,8 +14,8 @@ android {
vectorDrawables.useSupportLibrary = true vectorDrawables.useSupportLibrary = true
applicationId "code.name.monkey.retromusic" applicationId "code.name.monkey.retromusic"
versionCode 10551 versionCode 10553
versionName '5.5.0' versionName '5.6.0'
buildConfigField("String", "GOOGLE_PLAY_LICENSING_KEY", "\"${getProperty(getProperties('../public.properties'), 'GOOGLE_PLAY_LICENSE_KEY')}\"") buildConfigField("String", "GOOGLE_PLAY_LICENSING_KEY", "\"${getProperty(getProperties('../public.properties'), 'GOOGLE_PLAY_LICENSE_KEY')}\"")
} }

View file

@ -63,8 +63,8 @@
<body> <body>
<div> <div>
<h5>December 24, 2021</h5> <h5>December 25, 2021</h5>
<h2>v5.5.0<span class="tag"><i>Beta</i></span></h2> <h2>v5.6.0<span class="tag"><i>Beta</i></span></h2>
<h3>What's New</h3> <h3>What's New</h3>
<ul> <ul>
<li>Added Artwork editing for songs</li> <li>Added Artwork editing for songs</li>

View file

@ -400,12 +400,13 @@ abstract class AbsSlidingMusicPanelActivity : AbsMusicServiceActivity() {
if (hide) { if (hide) {
bottomSheetBehavior.peekHeight = -windowInsets.safeGetBottomInsets() bottomSheetBehavior.peekHeight = -windowInsets.safeGetBottomInsets()
bottomSheetBehavior.state = STATE_COLLAPSED bottomSheetBehavior.state = STATE_COLLAPSED
ViewCompat.setElevation(binding.slidingPanel, 0f) libraryViewModel.setFabMargin(if (isBottomNavVisible) dip(R.dimen.bottom_nav_height) else 0)
ViewCompat.setElevation(binding.bottomNavigationView, 10f) binding.slidingPanel.elevation = 0F
binding.bottomNavigationView.elevation = 10F
} else { } else {
if (MusicPlayerRemote.playingQueue.isNotEmpty()) { if (MusicPlayerRemote.playingQueue.isNotEmpty()) {
ViewCompat.setElevation(binding.slidingPanel, 10f) binding.slidingPanel.elevation = 0F
ViewCompat.setElevation(binding.bottomNavigationView, 10f) binding.bottomNavigationView.elevation = 10F
if (isBottomNavVisible) { if (isBottomNavVisible) {
println("List") println("List")
if (animate) { if (animate) {
@ -413,6 +414,7 @@ abstract class AbsSlidingMusicPanelActivity : AbsMusicServiceActivity() {
} else { } else {
bottomSheetBehavior.peekHeight = heightOfBarWithTabs bottomSheetBehavior.peekHeight = heightOfBarWithTabs
} }
libraryViewModel.setFabMargin(dip(R.dimen.mini_player_height_expanded))
} else { } else {
println("Details") println("Details")
if (animate) { if (animate) {
@ -423,6 +425,7 @@ abstract class AbsSlidingMusicPanelActivity : AbsMusicServiceActivity() {
bottomSheetBehavior.peekHeight = heightOfBar bottomSheetBehavior.peekHeight = heightOfBar
binding.slidingPanel.bringToFront() binding.slidingPanel.bringToFront()
} }
libraryViewModel.setFabMargin(dip(R.dimen.mini_player_height))
} }
} }
} }