Commit 42f716e7 authored by Nicolas Pomepuy's avatar Nicolas Pomepuy
Browse files

Fix ClassCastException

Fixes #1569
parent 894f0588
Pipeline #45560 passed with stage
in 3 minutes and 18 seconds
......@@ -77,7 +77,7 @@ abstract class BaseFragment : Fragment(), ActionMode.Callback {
}
fun updateAudioPlayerMargin() {
val activity = activity as AudioPlayerContainerActivity? ?: return
val activity = activity as? AudioPlayerContainerActivity? ?: return
view?.let {
it.setPadding(0,0,0,activity.getAudioMargin())
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment