Remove jumpiness when rendering reactions.

This commit is contained in:
Greyson Parrelli
2020-04-13 11:41:30 -04:00
parent b8ccc4453e
commit 00b6a222bd
2 changed files with 4 additions and 8 deletions

View File

@@ -42,7 +42,6 @@ import android.util.AttributeSet;
import android.util.TypedValue;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewTreeObserver;
import android.widget.LinearLayout;
import android.widget.TextView;
import android.widget.Toast;
@@ -912,10 +911,7 @@ public class ConversationItem extends LinearLayout implements BindableConversati
return;
}
if (bodyBubble.getWidth() != 0) {
setReactionsWithWidth(current, bodyBubble.getWidth());
}
setReactionsWithWidth(current, bodyBubble.getWidth());
bodyBubble.setOnSizeChangedListener((width, height) -> setReactionsWithWidth(current, width));
}