Skip to content
Snippets Groups Projects
Commit c643dbb4 authored by Duncan McNamara's avatar Duncan McNamara Committed by Nicolas Pomepuy
Browse files

AudioPlayer: in onResume set scan progress margin

There have been some cases where after returning to the app, the player
isn't shown anymore, but the scan progress is still positionned above
the now absent player. This will check for the presence of the player,
and set the scan progress margin accordingly, when resuming the
AudioPlayer.
parent 088d8ae4
No related branches found
No related tags found
1 merge request!1149ScanProgress: positionning fixes
......@@ -235,6 +235,14 @@ open class AudioPlayerContainerActivity : BaseActivity() {
super.onDestroy()
}
override fun onResume() {
if (playerShown)
applyMarginToProgressBar(playerBehavior.peekHeight)
else
applyMarginToProgressBar(0)
super.onResume()
}
override fun onBackPressed() {
if (slideDownAudioPlayer()) return
super.onBackPressed()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment