h.java
1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import android.graphics.drawable.Drawable.ConstantState;
import android.graphics.drawable.DrawableContainer;
import android.graphics.drawable.DrawableContainer.DrawableContainerState;
import android.util.Log;
import java.lang.reflect.Method;
public final class h
{
private static Method a;
private static boolean b;
public static boolean a(DrawableContainer paramDrawableContainer, Drawable.ConstantState paramConstantState)
{
if (!b) {}
try
{
Method localMethod = DrawableContainer.class.getDeclaredMethod("setConstantState", new Class[] { DrawableContainer.DrawableContainerState.class });
a = localMethod;
localMethod.setAccessible(true);
b = true;
if (a == null) {}
}
catch (NoSuchMethodException localNoSuchMethodException)
{
for (;;)
{
try
{
a.invoke(paramDrawableContainer, new Object[] { paramConstantState });
return true;
}
catch (Exception paramDrawableContainer)
{
Log.e("DrawableUtils", "Could not invoke setConstantState(). Oh well.");
}
localNoSuchMethodException = localNoSuchMethodException;
Log.e("DrawableUtils", "Could not fetch setConstantState(). Oh well.");
}
}
return false;
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/h.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/