ef.java
2.06 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
import android.annotation.TargetApi;
import android.content.Context;
import android.support.annotation.RequiresApi;
import android.support.v4.view.LayoutInflaterFactory;
import android.util.AttributeSet;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.LayoutInflater.Factory2;
import android.view.View;
import java.lang.reflect.Field;
@TargetApi(11)
@RequiresApi(11)
public final class ef
{
private static Field a;
private static boolean b;
public static void a(LayoutInflater paramLayoutInflater, LayoutInflater.Factory2 paramFactory2)
{
if (!b) {}
try
{
Field localField = LayoutInflater.class.getDeclaredField("mFactory2");
a = localField;
localField.setAccessible(true);
b = true;
if (a == null) {}
}
catch (NoSuchFieldException localNoSuchFieldException)
{
for (;;)
{
try
{
a.set(paramLayoutInflater, paramFactory2);
return;
}
catch (IllegalAccessException paramFactory2)
{
Log.e("LayoutInflaterCompatHC", "forceSetFactory2 could not set the Factory2 on LayoutInflater " + paramLayoutInflater + "; inflation may have unexpected results.", paramFactory2);
}
localNoSuchFieldException = localNoSuchFieldException;
Log.e("LayoutInflaterCompatHC", "forceSetFactory2 Could not find field 'mFactory2' on class " + LayoutInflater.class.getName() + "; inflation may have unexpected results.", localNoSuchFieldException);
}
}
}
public static final class a
extends ee.a
implements LayoutInflater.Factory2
{
public a(LayoutInflaterFactory paramLayoutInflaterFactory)
{
super();
}
public final View onCreateView(View paramView, String paramString, Context paramContext, AttributeSet paramAttributeSet)
{
return this.a.onCreateView(paramView, paramString, paramContext, paramAttributeSet);
}
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/ef.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/