mirror of
https://github.com/ReVanced/revanced-patches.git
synced 2025-05-11 21:25:40 +02:00
fix(YouTube): Resolve button flickering when taping seekbar (#4500)
This commit is contained in:
parent
afeef0bbec
commit
1f08047b48
1 changed files with 7 additions and 1 deletions
|
@ -90,7 +90,13 @@ public class PlayerControlButton {
|
|||
}
|
||||
|
||||
public void setVisibilityImmediate(boolean visible) {
|
||||
private_setVisibility(visible, false);
|
||||
if (visible) {
|
||||
// Fix button flickering, by pushing this call to the back of
|
||||
// the main thread and letting other layout code run first.
|
||||
Utils.runOnMainThread(() -> private_setVisibility(true, false));
|
||||
} else {
|
||||
private_setVisibility(false, false);
|
||||
}
|
||||
}
|
||||
|
||||
public void setVisibility(boolean visible, boolean animated) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue