nextplayer
nextplayer copied to clipboard
feat: Added Basic Support for Android TV (#322)
Commit Details:
- Added Focus support to Folder & Video listing screen
- Added Required Resources
- Made Changes in the app-level manifest file
Note:
I don't have in-depth knowledge about Compose. So some of the code will seem non-conventional. But that's the best I can do without messing up with the existing code. I will try to implement any changes that are suggested.
Changes Made:
- I have taken a var "isTvLayout" in the "ApplicationPreferences" which is initialised in the "NextPlayerApplication". And that var is used in the code to make the required changes for TV.
- Pull to refresh does not work on the TV properly. I have tried but have not found a solution to disable the pull functionality. So I have used a separate Widget for TV. This is not the ideal solution, but it works. Maybe someone can suggest the ideal solution.
- As the Long click is not working properly in TV, I have changed "combinedClickable" to "clickable" for TV
Screengrab:
https://github.com/user-attachments/assets/eb288d1e-91a7-45d7-979d-3b39ddfae1fd
@anilbeesetti please make this a priority