mirror of
https://github.com/SimpleMobileTools/Simple-Draw.git
synced 2025-06-05 21:59:17 +02:00
catch exceptions thrown at printing images
This commit is contained in:
@ -619,7 +619,11 @@ class MainActivity : SimpleActivity(), CanvasListener {
|
||||
private fun printImage() {
|
||||
val printHelper = PrintHelper(this)
|
||||
printHelper.scaleMode = PrintHelper.SCALE_MODE_FIT
|
||||
printHelper.printBitmap(getString(R.string.app_name), my_canvas.getBitmap())
|
||||
try {
|
||||
printHelper.printBitmap(getString(R.string.app_name), my_canvas.getBitmap())
|
||||
} catch (e: Exception) {
|
||||
showErrorToast(e)
|
||||
}
|
||||
}
|
||||
|
||||
private fun checkWhatsNewDialog() {
|
||||
|
Reference in New Issue
Block a user