mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-18 09:07:48 -04:00
Perf: remove shadow pass on buttons
This commit is contained in:
parent
4a8c1e4bc0
commit
2b879e886f
@ -45,6 +45,7 @@ public class ControlButton extends TextView implements ControlInterface {
|
|||||||
setTextColor(Color.WHITE);
|
setTextColor(Color.WHITE);
|
||||||
setPadding(4, 4, 4, 4);
|
setPadding(4, 4, 4, 4);
|
||||||
setTextSize(14); // Nullify the default size setting
|
setTextSize(14); // Nullify the default size setting
|
||||||
|
setOutlineProvider(null); // Disable shadow casting, removing one drawing pass
|
||||||
|
|
||||||
//setOnLongClickListener(this);
|
//setOnLongClickListener(this);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user