-
-
Notifications
You must be signed in to change notification settings - Fork 340
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
fix(YouTube): Do not hide player controls when using double tap to skip forward #4487
fix(YouTube): Do not hide player controls when using double tap to skip forward #4487
Conversation
What if use an invisible placeholder in the xml of each button? I will try this option now. |
I tried using animation listeners and set the buttons to GONE after the animation finishes, but it has issues with the buttons flickering and fading in/out inappropriately when tapping rapidly. |
I haven't checked this commit yet, I'm running out of time. |
If a button is turned off in the settings while a video is open, then the placeholder is not set hidden and a blank space is kept. Needs a minor adjustment to fix that otherwise this seems to work. |
MarcaDian@ae9ee2d ? I think that fixes it The disabled buttons disappear after tapping the screen after restoring from the miniplayer. |
Only one small bug remains, if you tap on the screen and immediately swipe to the miniplayer, and then expand it, the buttons keep fading animation. Screenrecorder-2025-02-22-00-02-36-656.mp4 |
Probably fix by MarcaDian@9094c8b |
It seems to be working now. I cannot reproduce any issues when entering/exiting fullscreen, so I'm unsure if MarcaDian@9094c8b is needed. |
Miniplayer? |
Actually, maximizing from miniplayer can incorrectly show the buttons for a moment. Will incorporate later today MarcaDian@9094c8b |
…' into fix_fade # Conflicts: # extensions/youtube/src/main/java/app/revanced/extension/youtube/videoplayer/CopyVideoUrlButton.java # extensions/youtube/src/main/java/app/revanced/extension/youtube/videoplayer/CopyVideoUrlTimestampButton.java # extensions/youtube/src/main/java/app/revanced/extension/youtube/videoplayer/PlaybackSpeedDialogButton.java # extensions/youtube/src/main/java/app/revanced/extension/youtube/videoplayer/PlayerControlButton.java
I could only reproduce the miniplayer button visibility issue once, but I don't remember if the fullscreen button was also visible (if fullscreen was visible then it was not a bug and was the correct behavior). I will try a bit more and see if the issue can be reproduced with what's currently here. |
Only the RV buttons were visible to me, see video above |
Did you try with this PR? If you can reproduce then I'll integrate MarcaDian@9094c8b |
05f1557
to
48a7347
Compare
@MarcaDian any issues remaining? I think this is ready. |
I used it for about an hour, I did not notice any bugs. Probably ready |
# [5.13.0-dev.9](v5.13.0-dev.8...v5.13.0-dev.9) (2025-02-22) ### Bug Fixes * **YouTube:** Do not hide player controls when using double tap to skip forward ([#4487](#4487)) ([63fe870](63fe870))
Try adding this snippet back again:
|
That's the first thing I thought, I'll have to try it later. 👌 |
This solved the problem. |
Make a PR with the change |
Follow up fix to #4469
The prior fix could cause the player controls to permanently disappear if the screen is tapped while a fade out animation is running.