mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-11 11:35:07 -05:00
Cleanup ImportKeysListEntry
This commit is contained in:
parent
6a8fa61908
commit
2166d66680
@ -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>();
|
||||||
|
Loading…
Reference in New Issue
Block a user