mirror of
https://github.com/revanced/revanced-patches.git
synced 2025-05-02 15:44:39 +02:00
fix(YouTube): Resolve button flickering when taping seekbar (#4500)
This commit is contained in:
parent
afeef0bbec
commit
1f08047b48
@ -90,7 +90,13 @@ public class PlayerControlButton {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void setVisibilityImmediate(boolean visible) {
|
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) {
|
public void setVisibility(boolean visible, boolean animated) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user