change method name for less redundancy

This commit is contained in:
Vincent Breitmoser 2017-08-27 23:05:06 +02:00
parent 8f1a892f1f
commit 0fe68498e0
2 changed files with 2 additions and 2 deletions

View file

@ -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);

View file

@ -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);
}