1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-09 23:34:20 +00:00

Android: Avoid reflection to simplify ComponentPeerView

This commit is contained in:
reuk 2025-07-02 20:34:01 +01:00
parent c134ca5d76
commit 5eaa1a9c55
No known key found for this signature in database
2 changed files with 827 additions and 877 deletions

View file

@ -117,36 +117,7 @@ public final class ComponentPeerView extends ViewGroup
colorMatrix.set (colorTransform);
paint.setColorFilter (new ColorMatrixColorFilter (colorMatrix));
java.lang.reflect.Method method = null;
try
{
method = getClass().getMethod ("setLayerType", int.class, Paint.class);
}
catch (SecurityException e)
{
}
catch (NoSuchMethodException e)
{
}
if (method != null)
{
try
{
int layerTypeNone = 0;
method.invoke (this, layerTypeNone, null);
}
catch (java.lang.IllegalArgumentException e)
{
}
catch (java.lang.IllegalAccessException e)
{
}
catch (java.lang.reflect.InvocationTargetException e)
{
}
}
setLayerType (LAYER_TYPE_NONE, null);
Choreographer.getInstance().postFrameCallback (this);
}

File diff suppressed because it is too large Load diff