mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-15 07:39:00 -04:00
Small drawing optimisation
This commit is contained in:
parent
47f467e705
commit
b32123ba58
@ -144,6 +144,12 @@ public class ControlButton extends androidx.appcompat.widget.AppCompatButton imp
|
|||||||
setVisibility(isVisible ? VISIBLE : GONE);
|
setVisibility(isVisible ? VISIBLE : GONE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void onVisibilityChanged(View changedView, int visibility) {
|
||||||
|
super.onVisibilityChanged(changedView, visibility);
|
||||||
|
setWillNotDraw(visibility == GONE);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setX(float x) {
|
public void setX(float x) {
|
||||||
super.setX(x);
|
super.setX(x);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user