fire-app-builder
fire-app-builder copied to clipboard
Disable Detail page
Hi,
Is it possible to disable the detail page, i mean when i click a channel it starts it immediatly without displaying the detail page ("add to favortites" or click "play") and when i click back on the remote it come back to the main screen.
Thanks.
Hi Rick,
There is no configuration change that would support this. You would need a code change. I tested a simple change that I believe works, but it's not thoroughly tested or officially supported, so please verify and test it well before releasing.
https://github.com/amzn/fire-app-builder/blob/master/TVUIComponent/lib/src/main/java/com/amazon/android/tv/tenfoot/ui/fragments/ContentBrowseFragment.java#L186-L188
Changing the above line to
ContentBrowser.getInstance(getActivity())
.handleRendererScreenSwitch(getActivity(), content,
ContentBrowser.CONTENT_ACTION_WATCH_FROM_BEGINNING, true);
should bypass the Content Detail Page and directly launch the playback from the beginning. Thanks!
It worked ! Thank you.
Glad it worked, and thanks for the update!