eb.java
2.11 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
86
87
88
89
90
91
92
93
94
95
96
97
98
import android.annotation.TargetApi;
import android.support.annotation.RequiresApi;
import android.util.Log;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.Locale;
@TargetApi(14)
@RequiresApi(14)
public final class eb
{
private static Method a;
private static Method b;
static
{
try
{
Class localClass = Class.forName("libcore.icu.ICU");
if (localClass != null)
{
a = localClass.getMethod("getScript", new Class[] { String.class });
b = localClass.getMethod("addLikelySubtags", new Class[] { String.class });
}
return;
}
catch (Exception localException)
{
a = null;
b = null;
Log.w("ICUCompatIcs", localException);
}
}
private static String a(String paramString)
{
try
{
if (a != null)
{
paramString = (String)a.invoke(null, new Object[] { paramString });
return paramString;
}
}
catch (IllegalAccessException paramString)
{
Log.w("ICUCompatIcs", paramString);
return null;
}
catch (InvocationTargetException paramString)
{
for (;;)
{
Log.w("ICUCompatIcs", paramString);
}
}
}
public static String a(Locale paramLocale)
{
paramLocale = b(paramLocale);
if (paramLocale != null) {
return a(paramLocale);
}
return null;
}
private static String b(Locale paramLocale)
{
paramLocale = paramLocale.toString();
try
{
if (b != null)
{
String str = (String)b.invoke(null, new Object[] { paramLocale });
return str;
}
}
catch (IllegalAccessException localIllegalAccessException)
{
Log.w("ICUCompatIcs", localIllegalAccessException);
return paramLocale;
}
catch (InvocationTargetException localInvocationTargetException)
{
for (;;)
{
Log.w("ICUCompatIcs", localInvocationTargetException);
}
}
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/eb.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/