cz.java
2.35 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
import android.annotation.TargetApi;
import android.graphics.drawable.Drawable;
import android.support.annotation.RequiresApi;
import android.util.Log;
import java.lang.reflect.Method;
@TargetApi(17)
@RequiresApi(17)
public final class cz
{
private static Method a;
private static boolean b;
private static Method c;
private static boolean d;
public static int a(Drawable paramDrawable)
{
if (!d) {}
try
{
Method localMethod = Drawable.class.getDeclaredMethod("getLayoutDirection", new Class[0]);
c = localMethod;
localMethod.setAccessible(true);
d = true;
if (c == null) {}
}
catch (NoSuchMethodException localNoSuchMethodException)
{
for (;;)
{
try
{
int i = ((Integer)c.invoke(paramDrawable, new Object[0])).intValue();
return i;
}
catch (Exception paramDrawable)
{
Log.i("DrawableCompatJellybeanMr1", "Failed to invoke getLayoutDirection() via reflection", paramDrawable);
c = null;
}
localNoSuchMethodException = localNoSuchMethodException;
Log.i("DrawableCompatJellybeanMr1", "Failed to retrieve getLayoutDirection() method", localNoSuchMethodException);
}
}
return -1;
}
public static boolean a(Drawable paramDrawable, int paramInt)
{
if (!b) {}
try
{
Method localMethod = Drawable.class.getDeclaredMethod("setLayoutDirection", new Class[] { Integer.TYPE });
a = localMethod;
localMethod.setAccessible(true);
b = true;
if (a == null) {}
}
catch (NoSuchMethodException localNoSuchMethodException)
{
for (;;)
{
try
{
a.invoke(paramDrawable, new Object[] { Integer.valueOf(paramInt) });
return true;
}
catch (Exception paramDrawable)
{
Log.i("DrawableCompatJellybeanMr1", "Failed to invoke setLayoutDirection(int) via reflection", paramDrawable);
a = null;
}
localNoSuchMethodException = localNoSuchMethodException;
Log.i("DrawableCompatJellybeanMr1", "Failed to retrieve setLayoutDirection(int) method", localNoSuchMethodException);
}
}
return false;
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/cz.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/