mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 21:15:48 +00:00
Fix reactions position when parent isn't re-laid-out.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user