Skip to content

Commit

Permalink
Update mod/app/src/main/java/bttv/SplitChat.java
Browse files Browse the repository at this point in the history
Co-authored-by: Max Baumann <max@bmn.dev>
  • Loading branch information
Zerwin and FoseFx authored Dec 27, 2024
1 parent 7cdc9d8 commit 79471d4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions mod/app/src/main/java/bttv/SplitChat.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,9 @@ public static void setBackgroundColor(int position, RecyclerView.ViewHolder view
View view = viewHolder.itemView;
Context context = view.getContext();

// make sure we only change chat message items
// Other elements like redeems or Sub Anniversaries are ConstraintLayouts

// If view is a LinearLayout, check the childrens to find chat_message_item
// make sure we only change chat message items,
// which are LinearLayouts with chat_message_item children.
// Anything else is ignored.
if(view instanceof LinearLayout) {
Log.d(TAG, "view is LinearLayout: " + view.toString());
LinearLayout linearLayout = (LinearLayout) view;
Expand Down

0 comments on commit 79471d4

Please sign in to comment.