use the parameter, mate... just do it

This commit is contained in:
AndyScherzinger 2018-06-14 22:01:26 +02:00
parent 3ea3fadff2
commit 654af51f3f
No known key found for this signature in database
GPG Key ID: 6CADC7E3523C308B

View File

@ -165,9 +165,6 @@ public class ApiUtils {
}
public static String getUrlForAvatarWithName(String baseUrl, String name, @DimenRes int avatarSize) {
avatarSize = Math.round(NextcloudTalkApplication
.getSharedApplication().getResources().getDimension(R.dimen.avatar_size));
return baseUrl + "/index.php/avatar/" + Uri.encode(name) + "/" + avatarSize;
}