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