-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Remove large-land player layout: not actually used #7894
Conversation
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 does not affect the tablet mode player in case anyone's wondering.
@B0pol @zubayy @EpIcInCoGnItO since you have a real Android TV and you are used to using it, could you test if this PR's apk causes any problem in the player (both fullscreen and not)? |
Kudos, SonarCloud Quality Gate passed! |
The spacing on non-fullscreen video and recommends is better on the left while, on the right, the playlist selector is better IMO. How do the chapters look like? Those should probably be like playlists are on the left. |
The focusing now works exactly as before. 👌 Mod note: Ignore not related to PRWhile your at it could you also fix some focus / highlighting issues on ATV?
Also on the speedmenu the 2 checkboxes are focusable but they are only highlighted when unchecked. So another guess (or count). 🤔 Also highlighted items are generally a bit inconsistent marked. Some have only a transparent round or square overlay, some have only a frame, (and, as stated above, some none at all). These issues are of course not introduced with this pr. They exist in normal builds too. Just thought to mention them here. |
Thank you all for the feedback.
This PR only removes the large-hand layout and nothing else. |
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.
LGTM
I like it when code gets deleted 👍
Did a quick test on the emulator and couldn't find any problems.
@peat80 thank you for the feedback! I just opened a follow-up PR: #7963
I will not fix these two things as they are caused by a misuse of themes throughout the app, which is a pretty big change ;-)
I also tested extensively (while creating #7963), so I can confirm everything works fine |
What is it?
Description of the changes in your PR
While debugging #7731 I found out that any change I made to the large-land layout of the player, didn't have any effect, which really confused me, since in the fullscreen/landscape player the large-land layout should have been used. But it seems like the normal layout is always used instead, so this PR is an experiment that removes the large-land layout completely. Removing it solves the problem of having 800 lines of duplicated layout code.
The diff between the normal layout and the large-land layout before removing it is below here, if it might come in handy for reviewing. As you can see, there are just some formatting differencies, and maybe a couple
dp
distances are not the same, but nothing big changes. So even if the large-land layout was being used at particular (unknown) times, removing it (which causes the normal layout to always be used) shouldn't make much of a difference.diff app/src/main/res/layout/player.xml app/src/main/res/layout-large-land/player.xml
APK testing
The APK can be found by going to the "Checks" tab below the title. On the left pane, click on "CI", scroll down to "artifacts" and click "app" to download the zip file which contains the debug APK of this PR.
Due diligence