Skip to content
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

[tvOS] Fix Indicators Setting Unreachable #1161

Merged
merged 2 commits into from
Aug 3, 2024

Conversation

JPKribs
Copy link
Member

@JPKribs JPKribs commented Jul 29, 2024

Issue Resolved by PR

In the Main branch, the Indicator button exists nested in the Settings > Customize. Because it is nested, the Settings.Router didn't seem to know what to do with it. On the current version of Main, selecting Indicators doesn't do anything. If you move the Indicators button to the main SettingsView, it's usable but it's not usable from Settings > Customize.

To resolve this, I created a CustomizeSettingsCoordinator that is activated in the same way that the existing SettingsCoordinator is when you call on SettingsViews. In this case, CustomizeSettingsCoordinator only contains the Indicators view at this time. But, in #1158 I am hoping to add a Home Sections menu to select which Tabs you want for tvOS. This CustomizeSettingsCoordinator works in this case as well.

Testing

Pull the current Main Branch and try selecting this button and notice that it does not route you to the Indicators selection view:

Settings > Customize > Indicators

Simulator Screenshot - Apple TV 4K (3rd generation) - 2024-07-28 at 22 32 13

Using this PR, you will be able to select this and it will bring you to this view:

Indicators View

Simulator Screenshot - Apple TV 4K (3rd generation) - 2024-07-28 at 22 29 39

Cause

I believe back in an earlier version, all of the settings that routed to other views existed on the main Settings Page. My guess is this was moved to the nested Settings > Customize Page. Since this version isn't on the App Store, the only people who would have noticed / tested probably aren't worried about setting Indicators so it went unnoticed.

…gsCoordinator. This is done with the goal of allowing Indicators + any future nested pages to be routable on tvOS.
JPKribs pushed a commit to JPKribs/Swiftfin that referenced this pull request Aug 2, 2024
Copy link
Member

@LePips LePips left a comment

Choose a reason for hiding this comment

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

Looks good! 👍

@LePips LePips merged commit 4f1907f into jellyfin:main Aug 3, 2024
4 checks passed
@LePips LePips added the bug Something isn't working label Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants