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:
parent
c134ca5d76
commit
5eaa1a9c55
2 changed files with 827 additions and 877 deletions
|
|
@ -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
Loading…
Add table
Add a link
Reference in a new issue