MenuItemWrapperICS.java
10.3 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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
package android.support.v7.view.menu;
import android.annotation.TargetApi;
import android.content.Context;
import android.content.Intent;
import android.graphics.drawable.Drawable;
import android.support.annotation.RequiresApi;
import android.support.annotation.RestrictTo;
import android.support.v4.internal.view.SupportMenuItem;
import android.support.v4.view.MenuItemCompat.OnActionExpandListener;
import android.util.Log;
import android.view.ContextMenu.ContextMenuInfo;
import android.view.MenuItem;
import android.view.MenuItem.OnActionExpandListener;
import android.view.MenuItem.OnMenuItemClickListener;
import android.view.SubMenu;
import android.view.View;
import android.widget.FrameLayout;
import fs;
import ft;
import java.lang.reflect.Method;
@TargetApi(14)
@RequiresApi(14)
@RestrictTo({android.support.annotation.RestrictTo.Scope.LIBRARY_GROUP})
public class MenuItemWrapperICS
extends fs<SupportMenuItem>
implements MenuItem
{
private Method e;
protected MenuItemWrapperICS(Context paramContext, SupportMenuItem paramSupportMenuItem)
{
super(paramContext, paramSupportMenuItem);
}
public a a(android.view.ActionProvider paramActionProvider)
{
return new a(this.a, paramActionProvider);
}
public boolean collapseActionView()
{
return ((SupportMenuItem)this.d).collapseActionView();
}
public boolean expandActionView()
{
return ((SupportMenuItem)this.d).expandActionView();
}
public android.view.ActionProvider getActionProvider()
{
android.support.v4.view.ActionProvider localActionProvider = ((SupportMenuItem)this.d).getSupportActionProvider();
if ((localActionProvider instanceof a)) {
return ((a)localActionProvider).a;
}
return null;
}
public View getActionView()
{
View localView2 = ((SupportMenuItem)this.d).getActionView();
View localView1 = localView2;
if ((localView2 instanceof b)) {
localView1 = (View)((b)localView2).a;
}
return localView1;
}
public char getAlphabeticShortcut()
{
return ((SupportMenuItem)this.d).getAlphabeticShortcut();
}
public int getGroupId()
{
return ((SupportMenuItem)this.d).getGroupId();
}
public Drawable getIcon()
{
return ((SupportMenuItem)this.d).getIcon();
}
public Intent getIntent()
{
return ((SupportMenuItem)this.d).getIntent();
}
public int getItemId()
{
return ((SupportMenuItem)this.d).getItemId();
}
public ContextMenu.ContextMenuInfo getMenuInfo()
{
return ((SupportMenuItem)this.d).getMenuInfo();
}
public char getNumericShortcut()
{
return ((SupportMenuItem)this.d).getNumericShortcut();
}
public int getOrder()
{
return ((SupportMenuItem)this.d).getOrder();
}
public SubMenu getSubMenu()
{
return a(((SupportMenuItem)this.d).getSubMenu());
}
public CharSequence getTitle()
{
return ((SupportMenuItem)this.d).getTitle();
}
public CharSequence getTitleCondensed()
{
return ((SupportMenuItem)this.d).getTitleCondensed();
}
public boolean hasSubMenu()
{
return ((SupportMenuItem)this.d).hasSubMenu();
}
public boolean isActionViewExpanded()
{
return ((SupportMenuItem)this.d).isActionViewExpanded();
}
public boolean isCheckable()
{
return ((SupportMenuItem)this.d).isCheckable();
}
public boolean isChecked()
{
return ((SupportMenuItem)this.d).isChecked();
}
public boolean isEnabled()
{
return ((SupportMenuItem)this.d).isEnabled();
}
public boolean isVisible()
{
return ((SupportMenuItem)this.d).isVisible();
}
public MenuItem setActionProvider(android.view.ActionProvider paramActionProvider)
{
SupportMenuItem localSupportMenuItem = (SupportMenuItem)this.d;
if (paramActionProvider != null) {}
for (paramActionProvider = a(paramActionProvider);; paramActionProvider = null)
{
localSupportMenuItem.setSupportActionProvider(paramActionProvider);
return this;
}
}
public MenuItem setActionView(int paramInt)
{
((SupportMenuItem)this.d).setActionView(paramInt);
View localView = ((SupportMenuItem)this.d).getActionView();
if ((localView instanceof android.view.CollapsibleActionView)) {
((SupportMenuItem)this.d).setActionView(new b(localView));
}
return this;
}
public MenuItem setActionView(View paramView)
{
Object localObject = paramView;
if ((paramView instanceof android.view.CollapsibleActionView)) {
localObject = new b(paramView);
}
((SupportMenuItem)this.d).setActionView((View)localObject);
return this;
}
public MenuItem setAlphabeticShortcut(char paramChar)
{
((SupportMenuItem)this.d).setAlphabeticShortcut(paramChar);
return this;
}
public MenuItem setCheckable(boolean paramBoolean)
{
((SupportMenuItem)this.d).setCheckable(paramBoolean);
return this;
}
public MenuItem setChecked(boolean paramBoolean)
{
((SupportMenuItem)this.d).setChecked(paramBoolean);
return this;
}
public MenuItem setEnabled(boolean paramBoolean)
{
((SupportMenuItem)this.d).setEnabled(paramBoolean);
return this;
}
public void setExclusiveCheckable(boolean paramBoolean)
{
try
{
if (this.e == null) {
this.e = ((SupportMenuItem)this.d).getClass().getDeclaredMethod("setExclusiveCheckable", new Class[] { Boolean.TYPE });
}
this.e.invoke(this.d, new Object[] { Boolean.valueOf(paramBoolean) });
return;
}
catch (Exception localException)
{
Log.w("MenuItemWrapper", "Error while calling setExclusiveCheckable", localException);
}
}
public MenuItem setIcon(int paramInt)
{
((SupportMenuItem)this.d).setIcon(paramInt);
return this;
}
public MenuItem setIcon(Drawable paramDrawable)
{
((SupportMenuItem)this.d).setIcon(paramDrawable);
return this;
}
public MenuItem setIntent(Intent paramIntent)
{
((SupportMenuItem)this.d).setIntent(paramIntent);
return this;
}
public MenuItem setNumericShortcut(char paramChar)
{
((SupportMenuItem)this.d).setNumericShortcut(paramChar);
return this;
}
public MenuItem setOnActionExpandListener(MenuItem.OnActionExpandListener paramOnActionExpandListener)
{
SupportMenuItem localSupportMenuItem = (SupportMenuItem)this.d;
if (paramOnActionExpandListener != null) {}
for (paramOnActionExpandListener = new c(paramOnActionExpandListener);; paramOnActionExpandListener = null)
{
localSupportMenuItem.setSupportOnActionExpandListener(paramOnActionExpandListener);
return this;
}
}
public MenuItem setOnMenuItemClickListener(MenuItem.OnMenuItemClickListener paramOnMenuItemClickListener)
{
SupportMenuItem localSupportMenuItem = (SupportMenuItem)this.d;
if (paramOnMenuItemClickListener != null) {}
for (paramOnMenuItemClickListener = new d(paramOnMenuItemClickListener);; paramOnMenuItemClickListener = null)
{
localSupportMenuItem.setOnMenuItemClickListener(paramOnMenuItemClickListener);
return this;
}
}
public MenuItem setShortcut(char paramChar1, char paramChar2)
{
((SupportMenuItem)this.d).setShortcut(paramChar1, paramChar2);
return this;
}
public void setShowAsAction(int paramInt)
{
((SupportMenuItem)this.d).setShowAsAction(paramInt);
}
public MenuItem setShowAsActionFlags(int paramInt)
{
((SupportMenuItem)this.d).setShowAsActionFlags(paramInt);
return this;
}
public MenuItem setTitle(int paramInt)
{
((SupportMenuItem)this.d).setTitle(paramInt);
return this;
}
public MenuItem setTitle(CharSequence paramCharSequence)
{
((SupportMenuItem)this.d).setTitle(paramCharSequence);
return this;
}
public MenuItem setTitleCondensed(CharSequence paramCharSequence)
{
((SupportMenuItem)this.d).setTitleCondensed(paramCharSequence);
return this;
}
public MenuItem setVisible(boolean paramBoolean)
{
return ((SupportMenuItem)this.d).setVisible(paramBoolean);
}
public class a
extends android.support.v4.view.ActionProvider
{
protected final android.view.ActionProvider a;
public a(Context paramContext, android.view.ActionProvider paramActionProvider)
{
super();
this.a = paramActionProvider;
}
public boolean hasSubMenu()
{
return this.a.hasSubMenu();
}
public View onCreateActionView()
{
return this.a.onCreateActionView();
}
public boolean onPerformDefaultAction()
{
return this.a.onPerformDefaultAction();
}
public void onPrepareSubMenu(SubMenu paramSubMenu)
{
this.a.onPrepareSubMenu(MenuItemWrapperICS.this.a(paramSubMenu));
}
}
static final class b
extends FrameLayout
implements android.support.v7.view.CollapsibleActionView
{
final android.view.CollapsibleActionView a;
b(View paramView)
{
super();
this.a = ((android.view.CollapsibleActionView)paramView);
addView(paramView);
}
public final void onActionViewCollapsed()
{
this.a.onActionViewCollapsed();
}
public final void onActionViewExpanded()
{
this.a.onActionViewExpanded();
}
}
final class c
extends ft<MenuItem.OnActionExpandListener>
implements MenuItemCompat.OnActionExpandListener
{
c(MenuItem.OnActionExpandListener paramOnActionExpandListener)
{
super();
}
public final boolean onMenuItemActionCollapse(MenuItem paramMenuItem)
{
return ((MenuItem.OnActionExpandListener)this.d).onMenuItemActionCollapse(MenuItemWrapperICS.this.a(paramMenuItem));
}
public final boolean onMenuItemActionExpand(MenuItem paramMenuItem)
{
return ((MenuItem.OnActionExpandListener)this.d).onMenuItemActionExpand(MenuItemWrapperICS.this.a(paramMenuItem));
}
}
final class d
extends ft<MenuItem.OnMenuItemClickListener>
implements MenuItem.OnMenuItemClickListener
{
d(MenuItem.OnMenuItemClickListener paramOnMenuItemClickListener)
{
super();
}
public final boolean onMenuItemClick(MenuItem paramMenuItem)
{
return ((MenuItem.OnMenuItemClickListener)this.d).onMenuItemClick(MenuItemWrapperICS.this.a(paramMenuItem));
}
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/android/support/v7/view/menu/MenuItemWrapperICS.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/