egeniq / android-tv-program-guide

Android TV Program Guide
Apache License 2.0
162 stars 63 forks source link

Support for EPG channel page switching #23

Closed anoopmaddasseri closed 3 years ago

anoopmaddasseri commented 3 years ago

Hello @dzolnai,

Can we add support for the channel page switching with the channel up/down key? On TV remotes, increments/decrements the EPG channel. So if u see channels 1-5 now when u press channel down you should show channel 6-10.

Thanks.

dzolnai commented 3 years ago

I have added this feature in my latest commit. It is turned off by default because I can imagine not everyone would like to have it. You can enable it like this:

    override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
        super.onViewCreated(view, savedInstanceState)
        ...
        programGuideGrid.featureNavigateWithChannelKeys = true
    }

As always, feel free to reopen the issue if it does not work correctly or when you got questions.