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

BUG: Android TV #845

Open
MaximFoxWevo opened this issue Jan 3, 2025 · 3 comments
Open

BUG: Android TV #845

MaximFoxWevo opened this issue Jan 3, 2025 · 3 comments

Comments

@MaximFoxWevo
Copy link

I can't use the buttons on the remote to enable VPN. That is, there is simply no way to get to the connect button.

@Serg0990
Copy link

Serg0990 commented Jan 7, 2025

Hey @MaximFoxWevo, indeed the Configuration UI is not usable on Android TV if the configurations list view doesn't have the input focus and you're using the TV's remote control as the user input device.

A quick workaround exists: you need to connect the mouse to your Android TV, like this you should be able to fully control the UI. Then you need to click button and import a configuration from a file (in case if there's no configuration yet i.e. the list view is empty) or just click anywhere in order to close the import config panel.
After this step, the configuration list view suddenly gets the input focus and you can start using the RC to enable/disable VPN, simply press "OK" button on the active configuration item - don't try to move the focus to button!
Hope this resolves the issue for you as it did for me.

Yet I agree there's a bug with navigation in Configuration UI using the TV's RC:

  1. when the list view is empty, you can't "click" button using the RC buttons;
  2. when the list view is non-empty and the input focus leaves the list view, you need to connect the mouse again because there's no other way to move the input focus back to the list view.

@Serg0990
Copy link

Serg0990 commented Jan 8, 2025

After a quick look into the sources, I wonder if problem 1 can be fixed simply by adding android:focusable="true" to add_profile_menu.xml for the top-level menu actions.
As for problem 2, I don't understand the reason because the list view items in a non-empty configuration list should be focusable according to layout_profile.xml yet the focus doesn't move to them when RC arrow buttons are used. Maybe this is due to some specific focus manipulation logic in the code...

@MaximFoxWevo
Copy link
Author

After a quick look into the sources, I wonder if problem 1 can be fixed simply by adding android:focusable="true" to add_profile_menu.xml for the top-level menu actions. As for problem 2, I don't understand the reason because the list view items in a non-empty configuration list should be focusable according to layout_profile.xml yet the focus doesn't move to them when RC arrow buttons are used. Maybe this is due to some specific focus manipulation logic in the code...

I have a TV Xiaomi A Pro 2025, I found a way to turn VPN on and off. After opening NekoBox, I clamping “OK” button once to select the connection and then clamping “OK” again to enable VPN.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants