mirror of
https://github.com/moparisthebest/open-keychain
synced 2025-01-11 13:38:06 -05:00
disable cancel button instead of hiding it on cancel prevention
This commit is contained in:
parent
5ce89c4af8
commit
ce58eb4b03
@ -145,7 +145,7 @@ public class ProgressDialogFragment extends DialogFragment {
|
|||||||
|
|
||||||
mPreventCancel = preventCancel;
|
mPreventCancel = preventCancel;
|
||||||
final Button negative = ((ProgressDialog) getDialog()).getButton(DialogInterface.BUTTON_NEGATIVE);
|
final Button negative = ((ProgressDialog) getDialog()).getButton(DialogInterface.BUTTON_NEGATIVE);
|
||||||
negative.setVisibility(preventCancel ? View.GONE : View.VISIBLE);
|
negative.setEnabled(mIsCancelled && !preventCancel);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user