mirror of
https://github.com/nextcloud/talk-android
synced 2025-03-06 14:27:24 +00:00
again fix size calculation
This commit is contained in:
parent
654af51f3f
commit
c816c8d102
@ -165,6 +165,9 @@ public class ApiUtils {
|
||||
}
|
||||
|
||||
public static String getUrlForAvatarWithName(String baseUrl, String name, @DimenRes int avatarSize) {
|
||||
avatarSize = Math.round(NextcloudTalkApplication
|
||||
.getSharedApplication().getResources().getDimension(avatarSize));
|
||||
|
||||
return baseUrl + "/index.php/avatar/" + Uri.encode(name) + "/" + avatarSize;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user