Fix reactions position when parent isn't re-laid-out.

This commit is contained in:
Alex Hart
2023-09-11 11:20:14 -03:00
parent 903e305519
commit 69f489ffc5

View File

@@ -63,6 +63,16 @@ public class ReactionsConversationView extends LinearLayout {
removeAllViews();
}
@Override
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
if (w != oldw) {
int bubbleWidth = this.bubbleWidth;
this.bubbleWidth = -1;
setBubbleWidth(bubbleWidth);
}
}
public boolean setBubbleWidth(int bubbleWidth) {
if (bubbleWidth == this.bubbleWidth) {
return false;