bttv
bttv copied to clipboard
Fix Split chat not working on Livestreams
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
- [x] My change builds
- [x] 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.stringsEnum andres/values/strings.xml(inmod) andres/values/public.xml(indisass)~~ - [ ] ~~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~~
- [x] I license my changes according to the MIT License.
This only highlights the text, not the whole "row"
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.
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.
This should be all of the changes