Make ECC 25519 the default generated key type

This commit is contained in:
segfault-bilibili
2023-03-18 10:47:31 +08:00
committed by Vincent Breitmoser
parent 5615197553
commit 0caeca0b66
2 changed files with 6 additions and 7 deletions

View File

@@ -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;
}