mirror of
https://github.com/moparisthebest/open-keychain
synced 2025-02-19 20:31:52 -05:00
fix no passphrase check
This commit is contained in:
parent
b9d2ae938a
commit
6ca9d8a268
@ -47,7 +47,7 @@ import org.sufficientlysecure.keychain.util.Log;
|
|||||||
public class SetPassphraseDialogFragment extends DialogFragment implements OnEditorActionListener {
|
public class SetPassphraseDialogFragment extends DialogFragment implements OnEditorActionListener {
|
||||||
private static final String ARG_MESSENGER = "messenger";
|
private static final String ARG_MESSENGER = "messenger";
|
||||||
private static final String ARG_TITLE = "title";
|
private static final String ARG_TITLE = "title";
|
||||||
private static final String ARG_OLD_PASSPHRASE = "title";
|
private static final String ARG_OLD_PASSPHRASE = "old_passphrase";
|
||||||
|
|
||||||
public static final int MESSAGE_OKAY = 1;
|
public static final int MESSAGE_OKAY = 1;
|
||||||
|
|
||||||
@ -103,6 +103,8 @@ public class SetPassphraseDialogFragment extends DialogFragment implements OnEdi
|
|||||||
|
|
||||||
if (TextUtils.isEmpty(oldPassphrase)) {
|
if (TextUtils.isEmpty(oldPassphrase)) {
|
||||||
mNoPassphraseCheckBox.setChecked(true);
|
mNoPassphraseCheckBox.setChecked(true);
|
||||||
|
mPassphraseEditText.setEnabled(false);
|
||||||
|
mPassphraseAgainEditText.setEnabled(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
mNoPassphraseCheckBox.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
mNoPassphraseCheckBox.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user