Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -86,23 +86,24 @@ class PrintingManager {
// cancelled and failed are ends too - waiting only for isCompleted polls
// forever on the job the user dismissed
if (printJob.isCompleted || printJob.isCancelled || printJob.isFailed) {
SnackbarHelper.dismiss(activity)
finish()

return
}

SnackbarHelper.show(
activity,
R.string.crouton_printing,
null,
isIndefinite = false,
isError = false,
)

backgroundHandler.postDelayed(this, 1000)
}
}

// once: showing it on every poll animated a new bar in each second (#484)
SnackbarHelper.show(
activity,
R.string.crouton_printing,
null,
isIndefinite = true,
isError = false,
)
checkPrintJob.run()
}

Expand Down
Loading