-
Notifications
You must be signed in to change notification settings - Fork 226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes some strange layout issues in EpisodeFragment #459
Conversation
Before video showing the issues on various episodes before.mp4 |
After video showing the fix on the same episodes (can also see the effect the fix has on the loading spinner and placement of short episode notes, again I feel like this is an acceptable tradeoff) after.mp4 |
…into episode-description-fix
Thank you for the fix @VGJohn and sorry about the delay in reviewing it. While your solution looks fine but as you stated, it comes with a drawback that'll impact episodes with shorter notes. I wonder if the issue could be because of how There's a known Android issue that affects the visibility of group elements and I suspect it could affect elements constrained to I wasn't able to reproduce the issue (tested on |
…into episode-description-fix
…into episode-description-fix
@ashiagr sorry about the delay as well! Thanks for the tip about the The result is that the issues from the before video are fixed and the layout remains unchanged 🎉 I tried to find another device or emulator that I could reproduce the issue on but it seems like it only happens on the Pixel 6a which is very strange, sorry about that! device-2022-10-30-033453.mp4 |
Attaching a video of the episode screen with the actual episode title and notes instead of them being hardcoded to "Testing" so you can see the layout remains the same with this fix 😄 device-2022-10-30-033923.mp4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is amazing @VGJohn! 🥳
I could not reproduce the issue on any of my devices or emulators but your changes look good to me.
Thank you so much for your continued effort in fixing it. 🙏
Cheers @ashiagr I think I just got lucky for the most part haha but hopefully it fixes the issues for the german users that reported it ❤️ Let me know if there's anything I can do to fix the spotless check failing, I run the spotless gradle task before opening any PRs and I didn't see it complain about any of the changes I made but I can't view the failure details from buildkite so maybe its something else 😕 |
Spotless is working fine on the local copy. It looks like some caching issue, I re-triggered the build to see if it fixes it. I don't think you need to do anything, but I'll keep you informed. 🤞 |
CI got working this time, it was a temporary glitch.
I hope so too 🤞 I merged your PR, only to realize that there was no ChangeLog entry to this fix. Could you add it in your other open PR or a new one if you like? |
@ashiagr sorry about that, I added the changelog entry to my other open PR 😄 |
Fix for some strange but pretty serious layout issues in the EpisodeFragment seen in the linked issues.
All the issues are stemming from the WebView with height=WRAP_CONTENT that displays the episode notes. The height of the WebView causes different issues on different episodes, if the notes in the WebView fit on screen then the WebView flickers and disappears and then if the title of the episode fits on a single line then the entire screen is blank.
I've attached videos showing the before and after with fix. I'm testing on a Pixel 6a with my language set to German with default font size setting. I'm also forcing the notes to just be "Testing" and the title of every episode to just be "Testing" which causes the strange layout issues seen in the video.
NOTE: There is one drawback to this fix, if the episode notes are short then they display centred at the end of the screen and same thing with the progress spinner that shows while the notes are loading. This can be seen in the after video. I think this is an acceptable trade off considering users would see no notes or a blank screen before.
Fixes #162 #163
Checklist