catch exceptions thrown at playing the recordings
This commit is contained in:
parent
bafbd877d2
commit
d4878dba7c
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue