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 d29760f60e..71b4e9cf28 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 void setDrawable(Drawable drawable){ } 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 c38f345299..69b20f7c74 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 void setImageDrawable(Drawable d) { 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); } }