How to make `indeterminateProgressDialog` non canc...
# anko
a
How to make
indeterminateProgressDialog
non cancellable? There is a
isCancelable
property for
alert
, but seems not the case for
indeterminateProgressDialog
, how to solve it?
l
@albertgao Are you using a
DialogFragment
? If so, you need to make it non cancellable
a
@louiscad Thanks for the answer Louis. No fragment gets involved, I just use
indeterminateProgressDialog
inside an onClick handler to show some executing information.
l
@albertgao Maybe the progressDialog is implicitly non cancellable? Have you tried to dismiss it?
a
@louiscad Yes, I can
dismiss
it. I checked the source code. Seems it doesn’t support it 😞
s
i have the same problem. I was trying this val progressDialog = indeterminateProgressDialog("Setting up your account")