-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
[Estuary] Fix home categories focus position #24000
Conversation
This fixes the problem where static content gets focused first in mixed content lists by simply moving it in front pf the dynamic content. Problem was raised on the forum - https://forum.kodi.tv/showthread.php?tid=374267
@HitcherUK you selected me for review, but honestly, I have no idea what consequences the change you made could have. My skinning skills are quite basic, I'd say. |
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.
I guess I can approve, I tested this and confirmed that it fixed the problem.
Sorry ksooo and thanks garbear. |
This reverts commit 740b9c3.
Could this also be made available for Nexus, please? |
I support a backport. There's a small conflict introduced by #23814 but it's not too hard to resolve. @HitcherUK Can you backport? I can help take care of the rebase conflict if you have any problems. |
With this PR?
Not sure how to; any pointers? |
Sure, to avoid the conflict without any complicated git resolving magic you can do a poor man's backport - create a branch based on Nexus, make the same change by hand, then send a PR. Create a new branch based on the current tip of the git checkout -b backport-fix-categories 618d1e35d89f1c49c2a37f5d233319f3f3bbe01b You'll then have a branch named Then, make the same change by hand and commit it. Then push the branch to your repo git push --set-upstream origin backport-fix-categories Then you can PR the |
Close enough 😉 You missed the "target Nexus" part so I edited the PR. You can see how now it's clean against Nexus. Thanks! |
Check now all fixed! |
That was quick, thanks. |
You rocked the git part! But I'm not surprised the confusing GitHub interface tripped up the backport, it's bitten me before too. |
Nice. I was wondering why it displayed this way. I made the change to my local install, and all working correctly again. |
@HitcherUK |
@garbear any ideas? |
Well that's expected as PR24027 is still closed, it needs reopening, then approval, and merging. |
Could have sworn it was merged. I'll try and sort it over the weekend. |
Description
This fixes the problem where the 'Now playing' (for Movies) and 'Next Aired' (for TV Shows) would get focus even though they're at the end of the categories list.
Motivation and context
It seems that in a mixed content type list the static content gets focus ahead of the dynamic content. By simply placing the static items at the front of the categories list means the focus always goes to the front of the list.
Problem reported on the forum - Category Icons at top is right aligned for some reason
Fixes this issue - #20139
How has this been tested?
Tested and works as expected.
What is the effect on users?
Screenshots (if appropriate):
Before PR:
![screenshot00004](https://private-user-images.githubusercontent.com/133808/278871652-dee0cd79-5cd2-4b94-9837-556c41200cb9.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA2ODQ2MDgsIm5iZiI6MTcyMDY4NDMwOCwicGF0aCI6Ii8xMzM4MDgvMjc4ODcxNjUyLWRlZTBjZDc5LTVjZDItNGI5NC05ODM3LTU1NmM0MTIwMGNiOS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcxMVQwNzUxNDhaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1kNTQ5MjhmZjAzOGQzYzNhNWE2Y2Q2ZTkxYjkwZmRhZjBhMGExZDFmZTY5NTFjOTY5NGRiZmY0Njg3N2UyNjVhJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.QskcN8OV__qRn69z4I4hvE_RkC59qHPkUvLce8ABdlU)
![screenshot00005](https://private-user-images.githubusercontent.com/133808/278871683-27b92b3c-0da3-4afc-814c-3a21e3a40f90.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA2ODQ2MDgsIm5iZiI6MTcyMDY4NDMwOCwicGF0aCI6Ii8xMzM4MDgvMjc4ODcxNjgzLTI3YjkyYjNjLTBkYTMtNGFmYy04MTRjLTNhMjFlM2E0MGY5MC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcxMVQwNzUxNDhaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1jMWRhYzk4MmIxY2ZhOGFjYWQyN2ZmMzY1ZGVkMjczM2Y0YTJlNTNiY2NmOTYzYmVhNzNjYjY2ZDRiZmE0YWY4JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.hpi9Cv74mlP3FHFoSUyczg401PHrQBNZwvEYGYtuwyg)
The categories list is offset on load
And the first item doesn't get selected
After PR:
![screenshot00006](https://private-user-images.githubusercontent.com/133808/278871735-e65e4ad6-7e73-4f22-8f4f-0b93aa04498c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA2ODQ2MDgsIm5iZiI6MTcyMDY4NDMwOCwicGF0aCI6Ii8xMzM4MDgvMjc4ODcxNzM1LWU2NWU0YWQ2LTdlNzMtNGYyMi04ZjRmLTBiOTNhYTA0NDk4Yy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSU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tleV9pZD0wJnJlcG9faWQ9MCJ9.6VJL2WjgRnqfUu5RrIyMiXnXtDc3WrRI0PwFZhVa_5o)
The categories list is correctly aligned
And the first item gets selected
Types of change
Checklist: