do not update the play/pause icon if something went wrong

This commit is contained in:
tibbi 2020-09-28 22:48:50 +02:00
parent c8d3c97d10
commit 60a4cc9690

View File

@ -277,12 +277,14 @@ class PlayerFragment(context: Context, attributeSet: AttributeSet) : MyViewPager
}
} catch (e: Exception) {
context?.showErrorToast(e)
return
}
try {
prepareAsync()
} catch (e: Exception) {
context.showErrorToast(e)
return
}
}