catch exceptions thrown at playing the recordings

This commit is contained in:
tibbi 2020-09-19 19:34:47 +02:00
parent bafbd877d2
commit d4878dba7c
1 changed files with 5 additions and 1 deletions

View File

@ -279,7 +279,11 @@ class PlayerFragment(context: Context, attributeSet: AttributeSet) : MyViewPager
context?.showErrorToast(e)
}
prepareAsync()
try {
prepareAsync()
} catch (e: Exception) {
context.showErrorToast(e)
}
}
play_pause_btn.setImageDrawable(getToggleButtonIcon(true))