change method name for less redundancy
This commit is contained in:
parent
8f1a892f1f
commit
0fe68498e0
2 changed files with 2 additions and 2 deletions
|
@ -50,7 +50,7 @@ public class AutocryptOperations {
|
|||
Date internalDate = currentMessage.getInternalDate();
|
||||
Date effectiveDate = messageDate.before(internalDate) ? messageDate : internalDate;
|
||||
|
||||
AutocryptPeerUpdate data = AutocryptPeerUpdate.createAutocryptPeerUpdate(
|
||||
AutocryptPeerUpdate data = AutocryptPeerUpdate.create(
|
||||
autocryptHeader.keyData, effectiveDate, autocryptHeader.isPreferEncryptMutual);
|
||||
intent.putExtra(OpenPgpApi.EXTRA_AUTOCRYPT_PEER_ID, messageFromAddress);
|
||||
intent.putExtra(OpenPgpApi.EXTRA_AUTOCRYPT_PEER_UPDATE, data);
|
||||
|
|
|
@ -51,7 +51,7 @@ public class AutocryptPeerUpdate implements Parcelable {
|
|||
}
|
||||
|
||||
|
||||
public static AutocryptPeerUpdate createAutocryptPeerUpdate(byte[] keyData, Date timestamp, boolean isMutual) {
|
||||
public static AutocryptPeerUpdate create(byte[] keyData, Date timestamp, boolean isMutual) {
|
||||
return new AutocryptPeerUpdate(keyData, timestamp, isMutual ? PreferEncrypt.MUTUAL : PreferEncrypt.NOPREFERENCE);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue