cb.java
3.9 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
import android.annotation.TargetApi;
import android.app.ActionBar;
import android.app.Activity;
import android.content.res.TypedArray;
import android.graphics.drawable.Drawable;
import android.os.Build.VERSION;
import android.support.annotation.RequiresApi;
import android.util.Log;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import java.lang.reflect.Method;
@TargetApi(11)
@RequiresApi(11)
public final class cb
{
private static final int[] a = { 16843531 };
public static Drawable a(Activity paramActivity)
{
paramActivity = paramActivity.obtainStyledAttributes(a);
Drawable localDrawable = paramActivity.getDrawable(0);
paramActivity.recycle();
return localDrawable;
}
public static Object a(Object paramObject, Activity paramActivity, int paramInt)
{
if (paramObject == null) {
paramObject = new cb.a(paramActivity);
}
for (;;)
{
cb.a locala = (cb.a)paramObject;
if (locala.a != null) {}
try
{
paramActivity = paramActivity.getActionBar();
locala.b.invoke(paramActivity, new Object[] { Integer.valueOf(paramInt) });
if (Build.VERSION.SDK_INT <= 19) {
paramActivity.setSubtitle(paramActivity.getSubtitle());
}
return paramObject;
}
catch (Exception paramActivity)
{
Log.w("ActionBarDrawerToggleHoneycomb", "Couldn't set content description via JB-MR2 API", paramActivity);
return paramObject;
}
}
}
public static Object a(Object paramObject, Activity paramActivity, Drawable paramDrawable, int paramInt)
{
if (paramObject == null) {
paramObject = new cb.a(paramActivity);
}
for (;;)
{
cb.a locala = (cb.a)paramObject;
if (locala.a != null) {
try
{
paramActivity = paramActivity.getActionBar();
locala.a.invoke(paramActivity, new Object[] { paramDrawable });
locala.b.invoke(paramActivity, new Object[] { Integer.valueOf(paramInt) });
return paramObject;
}
catch (Exception paramActivity)
{
Log.w("ActionBarDrawerToggleHoneycomb", "Couldn't set home-as-up indicator via JB-MR2 API", paramActivity);
return paramObject;
}
}
if (locala.c != null)
{
locala.c.setImageDrawable(paramDrawable);
return paramObject;
}
Log.w("ActionBarDrawerToggleHoneycomb", "Couldn't set home-as-up indicator");
return paramObject;
}
}
static final class a
{
public Method a;
public Method b;
public ImageView c;
a(Activity paramActivity)
{
for (;;)
{
Object localObject;
try
{
this.a = ActionBar.class.getDeclaredMethod("setHomeAsUpIndicator", new Class[] { Drawable.class });
this.b = ActionBar.class.getDeclaredMethod("setHomeActionContentDescription", new Class[] { Integer.TYPE });
return;
}
catch (NoSuchMethodException localNoSuchMethodException)
{
paramActivity = paramActivity.findViewById(16908332);
if (paramActivity == null) {
continue;
}
localObject = (ViewGroup)paramActivity.getParent();
if (((ViewGroup)localObject).getChildCount() != 2) {
continue;
}
paramActivity = ((ViewGroup)localObject).getChildAt(0);
localObject = ((ViewGroup)localObject).getChildAt(1);
if (paramActivity.getId() != 16908332) {
break label113;
}
}
paramActivity = (Activity)localObject;
label113:
while ((paramActivity instanceof ImageView))
{
this.c = ((ImageView)paramActivity);
return;
}
}
}
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/cb.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/