Cleanup ImportKeysListEntry

This commit is contained in:
Dominik Schürmann 2014-03-10 17:06:11 +01:00
parent 6a8fa61908
commit 2166d66680

View File

@ -125,7 +125,10 @@ public class ImportKeysListEntry implements Serializable, Parcelable {
* Constructor for later querying from keyserver * Constructor for later querying from keyserver
*/ */
public ImportKeysListEntry() { public ImportKeysListEntry() {
// keys from keyserver are always public keys
secretKey = false; secretKey = false;
// do not select by default
selected = false;
userIds = new ArrayList<String>(); userIds = new ArrayList<String>();
} }
@ -152,11 +155,10 @@ public class ImportKeysListEntry implements Serializable, Parcelable {
// selected is default // selected is default
this.selected = true; this.selected = true;
if ( !(pgpKeyRing instanceof PGPSecretKeyRing) ) { if (pgpKeyRing instanceof PGPSecretKeyRing) {
secretKey = false;
}
else{
secretKey = true; secretKey = true;
} else {
secretKey = false;
} }
userIds = new ArrayList<String>(); userIds = new ArrayList<String>();