New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add quick subtitle toggle feature #490
Conversation
Weird. I've just swapped my short and long press and it's now broken just the same. |
Also, press long subtitles to activate/deactivate. Ideally that should be end of it. However, you then get into menu. I hope that makes sense. |
Actually, I can't repro the red button problem. I just didn't realise that it's not available when subtitles are off. The menu popping up when letting go of subtitle, I can reproduce though. |
Makes two of us. Makes sense as as you can't alter position/colour etc if no subtitles are showing. Most skins do not have the menu button either. |
I think fixing the rogue popup on long button press is going to be a bit tricky. I can't see an obvious way to prevent the bounce event when you release the key. |
This should fix it. I had to introduce a global key watcher to do though. The e2 action map and keypress handler isn't really geared towards dealing with this long button press scenario. |
Many thanks. Works very well. |
@SimonCapewell Try doing the following: You should come up with a service unavailable message. You can't get out of the screen. We'll have to revert before next build unless fixed. |
A release needs to be run. As we always merge dev to release, I have been asked to revert this. |
This reverts commit 2a406df.
@AbuBaniaz I can't see any option to remove all services using the steps you listed. So, I've removed lamedb and bouquet files, but still no service unavailble popup on startup. Triggering the popup on e2 startup in code doesn't show any ill effect. Can you have another go testing it, but remove the |
I'll try the new code, problem is I am stuck on PLi owing to the multiboot code they are changing. I'll send @TwolDE2 a PM to see if he can run it too. Just for reference and in case it makes things clearer. Alternatively, init 4, wait for 10 seconds, rename lamedb, init 3 |
Thanks. Looks like I did the terminal steps, so there's probably some settings that are different |
This reverts commit db6d07b.
Abu asked me to test this. I downloaded the code in this change (as a patch) then:
So, for me, the code here seems to be OK as-is. |
* Add quick subtitle toggle feature * Add subtitle toggle UI * Ignore keyup events whilst message is showing
I cannot reproduce the issue again. I have re-added this having consulted Stef. He will run a Dev build tonight. |
There's a bit of crappy code in there around removing the keybinding on close (or in fact not removing it) but this'd only be encountered when shutting down, and it won't matter then. I can submit a tidy up at a later date. |
PLI have asked for a pull request to be submitted for this. So I'll wait for your modified code. |
* Add quick subtitle toggle feature * Add subtitle toggle UI * Ignore keyup events whilst message is showing
This reverts commit 2a406df.
* Add quick subtitle toggle feature * Add subtitle toggle UI * Ignore keyup events whilst message is showing
* Add quick subtitle toggle feature * Add subtitle toggle UI * Ignore keyup events whilst message is showing
This change allows a long press of the subtitles button to toggle subtitles on and off. If there's more than one subtitle track, the first subtitle track is activated. A subtitle style message is shown onscreen when toggling the subtitle to indicate the new status of subtitles - on or off, or if no subtitles are available. The button used is configurable, and on my installation, I'm using a short press for toggle, a long press for the subtitles dialog.