Reputation: 3773
How to make indeterminateProgressDialog
non cancellable? There is a isCancelable
property for alert
, but seems not the case for indeterminateProgressDialog
, how to solve it?
Upvotes: 4
Views: 402
Reputation: 2779
Try this:
indeterminateProgressDialog(R.string.wait_for_loading).apply {
setCancelable(false)
}
Upvotes: 0