We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71da396 commit 4ebf1f4Copy full SHA for 4ebf1f4
app/src/main/kotlin/com/simplemobiletools/notes/pro/activities/MainActivity.kt
@@ -1169,7 +1169,11 @@ class MainActivity : SimpleActivity() {
1169
val printAdapter = webView.createPrintDocumentAdapter(jobName)
1170
1171
(getSystemService(Context.PRINT_SERVICE) as? PrintManager)?.apply {
1172
- print(jobName, printAdapter, PrintAttributes.Builder().build())
+ try {
1173
+ print(jobName, printAdapter, PrintAttributes.Builder().build())
1174
+ } catch (e: IllegalStateException) {
1175
+ showErrorToast(e)
1176
+ }
1177
}
1178
1179
0 commit comments