From d5ae2e38979074530bebf99d91c46b6a5c776e58 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 40d55b0dcc..6dafb1e604 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 2eb05085fe..f70f242150 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 @@ -418,7 +418,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); } }