mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-18 00:59:35 -04:00
[Custom controls] Bug fix: Transparency not working
This commit is contained in:
parent
bfd6814bfa
commit
76c7b4aeb2
@ -70,7 +70,7 @@ public class ControlLayout extends FrameLayout
|
||||
final ControlButton view = new ControlButton(this, controlButton);
|
||||
view.setModifiable(mModifiable);
|
||||
if (!mModifiable) {
|
||||
view.setAlpha(1f - view.getProperties().transparency / 100);
|
||||
view.setAlpha(1f - view.getProperties().transparency / 100f);
|
||||
view.setFocusable(false);
|
||||
view.setFocusableInTouchMode(false);
|
||||
}
|
||||
@ -116,7 +116,7 @@ public class ControlLayout extends FrameLayout
|
||||
ControlButton cv = ((ControlButton) v);
|
||||
cv.setModifiable(z);
|
||||
if (!z) {
|
||||
cv.setAlpha(1f - cv.getProperties().transparency / 100);
|
||||
cv.setAlpha(1f - cv.getProperties().transparency / 100f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user