mirror of
https://github.com/SimpleMobileTools/Simple-Voice-Recorder.git
synced 2025-06-05 21:59:31 +02:00
catch exceptions thrown at playing the recordings
This commit is contained in:
@ -279,7 +279,11 @@ class PlayerFragment(context: Context, attributeSet: AttributeSet) : MyViewPager
|
|||||||
context?.showErrorToast(e)
|
context?.showErrorToast(e)
|
||||||
}
|
}
|
||||||
|
|
||||||
prepareAsync()
|
try {
|
||||||
|
prepareAsync()
|
||||||
|
} catch (e: Exception) {
|
||||||
|
context.showErrorToast(e)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
play_pause_btn.setImageDrawable(getToggleButtonIcon(true))
|
play_pause_btn.setImageDrawable(getToggleButtonIcon(true))
|
||||||
|
Reference in New Issue
Block a user