mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-12 22:26:56 -04:00
CustomControls: exception print wrong object type
This commit is contained in:
parent
ee333d89c0
commit
0bda4a11fc
@ -59,7 +59,7 @@ public class ControlView extends Button implements OnLongClickListener, OnTouchL
|
|||||||
} else if (properties.specialButtonListener instanceof View.OnTouchListener) {
|
} else if (properties.specialButtonListener instanceof View.OnTouchListener) {
|
||||||
setOnTouchListener((View.OnTouchListener) properties.specialButtonListener);
|
setOnTouchListener((View.OnTouchListener) properties.specialButtonListener);
|
||||||
} else {
|
} else {
|
||||||
throw new IllegalArgumentException("Field " + ControlButton.class.getName() + ".specialButtonListener must be View.OnClickListener or View.OnTouchListener");
|
throw new IllegalArgumentException("Field " + ControlButton.class.getName() + ".specialButtonListener must be View.OnClickListener or View.OnTouchListener, but is " + properties.specialButtonListener.getClass().getName());
|
||||||
}
|
}
|
||||||
|
|
||||||
setLayoutParams(new FrameLayout.LayoutParams(properties.width, properties.height));
|
setLayoutParams(new FrameLayout.LayoutParams(properties.width, properties.height));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user