Fix CI V2 layout bounds when item has a reaction.

This commit is contained in:
Alex Hart
2023-06-30 16:12:43 -03:00
committed by Greyson Parrelli
parent 3040b70100
commit 4590655dc5
7 changed files with 52 additions and 31 deletions

View File

@@ -63,9 +63,9 @@ public class ReactionsConversationView extends LinearLayout {
removeAllViews();
}
public void setReactions(@NonNull List<ReactionRecord> records, int bubbleWidth) {
public boolean setReactions(@NonNull List<ReactionRecord> records, int bubbleWidth) {
if (records.equals(this.records) && this.bubbleWidth == bubbleWidth) {
return;
return false;
}
this.records.clear();
@@ -102,6 +102,8 @@ public class ReactionsConversationView extends LinearLayout {
ViewUtil.setLeftMargin(this, OUTER_MARGIN);
}
}
return true;
}
private static @NonNull List<Reaction> buildSortedReactionsList(@NonNull List<ReactionRecord> records) {