fire-app-builder icon indicating copy to clipboard operation
fire-app-builder copied to clipboard

Disable Detail page

Open kane2931 opened this issue 5 years ago • 3 comments

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.

kane2931 avatar Mar 10 '19 16:03 kane2931

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!

levonlevonian avatar Mar 12 '19 19:03 levonlevonian

It worked ! Thank you.

kane2931 avatar Apr 07 '19 15:04 kane2931

Glad it worked, and thanks for the update!

levonlevonian avatar Apr 07 '19 15:04 levonlevonian