mediathekview / zapp

German public broadcasting live streams as an Android app
https://mediathekview.de/news/zapp/
MIT License
203 stars 33 forks source link

Double channel switching on Fire TV with remote control #126

Closed cemrich closed 3 years ago

cemrich commented 6 years ago

When switching channels on Fire TV via remote control, two channels are switched at once. On a "normal" Android device with keyboard the channel switching works as intended.

The channel switching takes place in https://github.com/cemrich/zapp/blob/master/app/src/main/java/de/christinecoenen/code/zapp/app/livestream/ui/detail/ChannelDetailActivity.java

cemrich commented 6 years ago

I can reproduce the issue on an Android TV emulator with keyboard.

1337sup3rh4x0r commented 6 years ago

Thanks for digging into this. To me the code looks just like the examples from the android code pages so I don't have a clue why it's firing twice. Also I couldn't find anything on android TV behaving different from other android devices with regard to onKey events. Could one find another app that is made for TV and check how key presses are handled there? Kodi maybe?

cemrich commented 4 years ago

I just tested this issue on an Android TV emulator with API level 27 (Android 8.1) and it is gone. Does anybody else experience this issue on a real device?

cemrich commented 4 years ago

I will close this issue due to inactivity. Please reopen if this issue bothers you again.

k9janer commented 4 years ago

Unfortunately this issue still persists on my FireTV Stick 4K with the newest FireOS 6.2.7.3 and Zapp 3.5.0.

When I press right on any of my remotes while watching "Das Erste" it will quickly skip over "ZDF" and switch to "arte".

cemrich commented 4 years ago

I can't fix this without a real device. So, please help, folks :-)

cemrich commented 3 years ago

This issue is obsolete with version 5.0.0 as channel switching is no longer allowed.