From c26df5762fa7d068b49680345e46650f88584480 Mon Sep 17 00:00:00 2001 From: Jacocococo Date: Mon, 12 Feb 2024 21:20:50 +0100 Subject: [PATCH] Still set desired height --- .../java/org/joinmastodon/android/ui/text/CustomEmojiSpan.java | 2 +- .../main/java/org/joinmastodon/android/ui/utils/UiUtils.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mastodon/src/main/java/org/joinmastodon/android/ui/text/CustomEmojiSpan.java b/mastodon/src/main/java/org/joinmastodon/android/ui/text/CustomEmojiSpan.java index d29760f60..71b4e9cf2 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/ui/text/CustomEmojiSpan.java +++ b/mastodon/src/main/java/org/joinmastodon/android/ui/text/CustomEmojiSpan.java @@ -58,6 +58,6 @@ public class CustomEmojiSpan extends ReplacementSpan{ } public UrlImageLoaderRequest createImageLoaderRequest(){ - return new UrlImageLoaderRequest(GlobalUserPreferences.playGifs ? emoji.url : emoji.staticUrl); + return new UrlImageLoaderRequest(GlobalUserPreferences.playGifs ? emoji.url : emoji.staticUrl, 0, V.dp(20)); } } diff --git a/mastodon/src/main/java/org/joinmastodon/android/ui/utils/UiUtils.java b/mastodon/src/main/java/org/joinmastodon/android/ui/utils/UiUtils.java index c38f34529..69b20f7c7 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/ui/utils/UiUtils.java +++ b/mastodon/src/main/java/org/joinmastodon/android/ui/utils/UiUtils.java @@ -434,7 +434,7 @@ public class UiUtils { public View getView() { return view; } - }, null, new UrlImageLoaderRequest(emoji.getKey().url), null, false, true); + }, null, new UrlImageLoaderRequest(emoji.getKey().url, 0, V.dp(20)), null, false, true); } }