diff options
author | Stefan Niedermann <info@niedermann.it> | 2020-10-04 12:38:12 +0300 |
---|---|---|
committer | Stefan Niedermann <info@niedermann.it> | 2020-10-04 12:38:12 +0300 |
commit | e74f8b714ad6180f0cde0c12d1d23f06a88ba5ab (patch) | |
tree | cff0c4eff7cd355e118feb106cab8ed0e2e78160 /app/src/main/java/it/niedermann/nextcloud/deck/util | |
parent | a2967749b4bbf46501072df9442f7a5296ca9b31 (diff) |
Fix placeholders for avatar loading
Signed-off-by: Stefan Niedermann <info@niedermann.it>
Diffstat (limited to 'app/src/main/java/it/niedermann/nextcloud/deck/util')
-rw-r--r-- | app/src/main/java/it/niedermann/nextcloud/deck/util/ViewUtil.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/util/ViewUtil.java b/app/src/main/java/it/niedermann/nextcloud/deck/util/ViewUtil.java index 2d6493624..acb72e428 100644 --- a/app/src/main/java/it/niedermann/nextcloud/deck/util/ViewUtil.java +++ b/app/src/main/java/it/niedermann/nextcloud/deck/util/ViewUtil.java @@ -46,6 +46,7 @@ public final class ViewUtil { final String uri = baseUrl + "/index.php/avatar/" + Uri.encode(userId) + "/" + avatarSizeInPx; Glide.with(avatar.getContext()) .load(uri) + .placeholder(errorResource) .error(errorResource) .apply(RequestOptions.circleCropTransform()) .into(avatar); |