Make ECC 25519 the default generated key type
This commit is contained in:
committed by
Vincent Breitmoser
parent
5615197553
commit
0caeca0b66
@@ -165,9 +165,8 @@ public class AddSubkeyDialogFragment extends DialogFragment {
|
||||
TwoLineArrayAdapter adapter = new TwoLineArrayAdapter(context,
|
||||
android.R.layout.simple_spinner_item, choices);
|
||||
mKeyTypeSpinner.setAdapter(adapter);
|
||||
// make RSA 3072 the default
|
||||
for (int i = 0; i < choices.size(); ++i) {
|
||||
if (choices.get(i).getId() == SupportedKeyType.RSA_3072) {
|
||||
if (choices.get(i).getId() == SupportedKeyType.ECC_25519) {
|
||||
mKeyTypeSpinner.setSelection(i);
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user