From 654af51f3ffdda99a05cda76cedf1918c7315e3d Mon Sep 17 00:00:00 2001 From: AndyScherzinger Date: Thu, 14 Jun 2018 22:01:26 +0200 Subject: [PATCH] use the parameter, mate... just do it --- app/src/main/java/com/nextcloud/talk/utils/ApiUtils.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/app/src/main/java/com/nextcloud/talk/utils/ApiUtils.java b/app/src/main/java/com/nextcloud/talk/utils/ApiUtils.java index 017609bb6..d97417c5f 100644 --- a/app/src/main/java/com/nextcloud/talk/utils/ApiUtils.java +++ b/app/src/main/java/com/nextcloud/talk/utils/ApiUtils.java @@ -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; }