Merge pull request #1796 from AlexFJW/LimitCreateKeyOptions

Refer to issue #1600 Limit create key options
This commit is contained in:
Vincent
2016-04-04 10:53:11 +02:00
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;