diff --git a/app/src/main/java/org/nuclearfog/twidda/backend/async/EmojiLoader.java b/app/src/main/java/org/nuclearfog/twidda/backend/async/EmojiLoader.java index c1cad835..230f3433 100644 --- a/app/src/main/java/org/nuclearfog/twidda/backend/async/EmojiLoader.java +++ b/app/src/main/java/org/nuclearfog/twidda/backend/async/EmojiLoader.java @@ -50,7 +50,11 @@ public class EmojiLoader extends AsyncExecutor 0 && icon.getWidth() > 0) { + icon = Bitmap.createScaledBitmap(icon, icon.getWidth() * param.size / icon.getHeight(), param.size, false); + } else { + icon = Bitmap.createScaledBitmap(icon, param.size, param.size, false); + } result.put(emoji.getCode(), icon); } cache.trimCache();