mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-19 01:27:18 -04:00
Autoscale buttons
This commit is contained in:
parent
6229a66d01
commit
d87f0d464d
@ -1104,7 +1104,7 @@ public class BaseMainActivity extends LoggableActivity implements OnTouchListene
|
||||
|
||||
protected Button findButton(int id) {
|
||||
Button button = (Button) findViewById(id);
|
||||
button.setWidth((int) (button.getWidth() * LauncherPreferences.PREF_BUTTONSIZE));
|
||||
button.setWidth((int) (button.getWidth() * Tools.currentDisplayMetrics.scaledDensity));
|
||||
button.setHeight((int) (button.getHeight() * LauncherPreferences.PREF_BUTTONSIZE));
|
||||
button.setOnTouchListener(this);
|
||||
button.setFocusable(false);
|
||||
|
Loading…
x
Reference in New Issue
Block a user