Skip to content

Conversation

Zerwin
Copy link
Contributor

@Zerwin Zerwin commented Aug 30, 2024

Fixes #673

Changes

Twitch changed chat messages in Live Streams to be LinearLayouts with the chat_message_item as a child. This fixes it to target the child rather than the LinearLayout to make Split Chat work again.

Checklist

  • My change builds
  • I tested my change
  • I use the "bttv_" prefix for all resources I propose
  • When adding a string I also added it to the bttv.Res.strings Enum and res/values/strings.xml (in mod) and res/values/public.xml (in disass)
  • If my change is significant enough, I added it to the CHANGELOG.md under master
  • I'll add myself and everyone else who contributed to this change to the contributors list using all-contributors
  • I license my changes according to the MIT License.

@FoseFx
Copy link
Member

FoseFx commented Aug 30, 2024

This only highlights the text, not the whole "row"

image

@Zerwin
Copy link
Contributor Author

Zerwin commented Aug 30, 2024

The LinearLayout only stretches as far as the text, not the row. I thought of trying to set the width to the whole space, but that might introduce other bugs that could be a headache to deal with.

@Zerwin
Copy link
Contributor Author

Zerwin commented Dec 23, 2024

I made it so that comments are as wide as the parent element now. This should make the entire "row" colored. I tested it for a bit and at least couldn't immediately find any bugs because of this change.

@Zerwin Zerwin mentioned this pull request Dec 26, 2024
2 tasks
Copy link
Member

@FoseFx FoseFx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Highly appreciate your help!
Only one minor thing I'd like to have changed with this.

Zerwin and others added 6 commits December 27, 2024 02:45
Co-authored-by: Max Baumann <max@bmn.dev>
Co-authored-by: Max Baumann <max@bmn.dev>
Co-authored-by: Max Baumann <max@bmn.dev>
Apply suggestions from code review

Co-authored-by: Max Baumann <max@bmn.dev>
Update SplitChat.java
Fix typo
@Zerwin
Copy link
Contributor Author

Zerwin commented Dec 27, 2024

This should be all of the changes

Copy link
Member

@FoseFx FoseFx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉️

@FoseFx FoseFx merged commit f4447f4 into bttv-android:master Dec 27, 2024
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

chat split not working
2 participants