Redesigned subkey creation dialog and changed default key type created to RSA, 3072 bit.

Added code to prevent removal of master subkey when modifying a new key.
This commit is contained in:
Alex Fong
2016-03-21 21:37:19 +08:00
parent ce5e5f36c5
commit cb9bdb3cf7
14 changed files with 364 additions and 487 deletions

View File

@@ -18,12 +18,15 @@
package org.sufficientlysecure.keychain.util;
public class Choice <E> {
private String mName;
private E mId;
private String mDescription;
public Choice(E id, String name) {
public Choice(E id, String name, String description) {
mId = id;
mName = name;
mDescription = description;
}
public E getId() {
@@ -34,6 +37,10 @@ public class Choice <E> {
return mName;
}
public String getDescription() {
return mDescription;
}
@Override
public String toString() {
return mName;