mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 04:58:45 +00:00
Fix emoji rendering artifact.
There's sometimes this one pixel line that can appear next to them. Easiest solution for now is to trim it off.
This commit is contained in:
@@ -122,10 +122,10 @@ class EmojiProvider {
|
||||
final int xStart = (index % emojiPerRow) * glyphWidth;
|
||||
final int yStart = (index / emojiPerRow) * glyphHeight;
|
||||
|
||||
this.emojiBounds = new Rect(xStart,
|
||||
yStart,
|
||||
xStart + glyphWidth,
|
||||
yStart + glyphHeight);
|
||||
this.emojiBounds = new Rect(xStart + 1,
|
||||
yStart + 1,
|
||||
xStart + glyphWidth - 1,
|
||||
yStart + glyphHeight - 1);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user