ActionMenuItem.java
6.6 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
package android.support.v7.view.menu;
import android.content.Context;
import android.content.Intent;
import android.content.res.Resources;
import android.graphics.drawable.Drawable;
import android.support.annotation.RestrictTo;
import android.support.v4.content.ContextCompat;
import android.support.v4.internal.view.SupportMenuItem;
import android.support.v4.view.MenuItemCompat.OnActionExpandListener;
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;
@RestrictTo({android.support.annotation.RestrictTo.Scope.LIBRARY_GROUP})
public class ActionMenuItem
implements SupportMenuItem
{
private final int a;
private final int b;
private final int c;
private final int d;
private CharSequence e;
private CharSequence f;
private Intent g;
private char h;
private char i;
private Drawable j;
private int k = 0;
private Context l;
private MenuItem.OnMenuItemClickListener m;
private int n = 16;
public ActionMenuItem(Context paramContext, int paramInt1, int paramInt2, int paramInt3, int paramInt4, CharSequence paramCharSequence)
{
this.l = paramContext;
this.a = paramInt2;
this.b = paramInt1;
this.c = paramInt3;
this.d = paramInt4;
this.e = paramCharSequence;
}
public boolean collapseActionView()
{
return false;
}
public boolean expandActionView()
{
return false;
}
public android.view.ActionProvider getActionProvider()
{
throw new UnsupportedOperationException();
}
public View getActionView()
{
return null;
}
public char getAlphabeticShortcut()
{
return this.i;
}
public int getGroupId()
{
return this.b;
}
public Drawable getIcon()
{
return this.j;
}
public Intent getIntent()
{
return this.g;
}
public int getItemId()
{
return this.a;
}
public ContextMenu.ContextMenuInfo getMenuInfo()
{
return null;
}
public char getNumericShortcut()
{
return this.h;
}
public int getOrder()
{
return this.d;
}
public SubMenu getSubMenu()
{
return null;
}
public android.support.v4.view.ActionProvider getSupportActionProvider()
{
return null;
}
public CharSequence getTitle()
{
return this.e;
}
public CharSequence getTitleCondensed()
{
if (this.f != null) {
return this.f;
}
return this.e;
}
public boolean hasSubMenu()
{
return false;
}
public boolean invoke()
{
if ((this.m != null) && (this.m.onMenuItemClick(this))) {
return true;
}
if (this.g != null)
{
this.l.startActivity(this.g);
return true;
}
return false;
}
public boolean isActionViewExpanded()
{
return false;
}
public boolean isCheckable()
{
return (this.n & 0x1) != 0;
}
public boolean isChecked()
{
return (this.n & 0x2) != 0;
}
public boolean isEnabled()
{
return (this.n & 0x10) != 0;
}
public boolean isVisible()
{
return (this.n & 0x8) == 0;
}
public MenuItem setActionProvider(android.view.ActionProvider paramActionProvider)
{
throw new UnsupportedOperationException();
}
public SupportMenuItem setActionView(int paramInt)
{
throw new UnsupportedOperationException();
}
public SupportMenuItem setActionView(View paramView)
{
throw new UnsupportedOperationException();
}
public MenuItem setAlphabeticShortcut(char paramChar)
{
this.i = paramChar;
return this;
}
public MenuItem setCheckable(boolean paramBoolean)
{
int i2 = this.n;
if (paramBoolean) {}
for (int i1 = 1;; i1 = 0)
{
this.n = (i1 | i2 & 0xFFFFFFFE);
return this;
}
}
public MenuItem setChecked(boolean paramBoolean)
{
int i2 = this.n;
if (paramBoolean) {}
for (int i1 = 2;; i1 = 0)
{
this.n = (i1 | i2 & 0xFFFFFFFD);
return this;
}
}
public MenuItem setEnabled(boolean paramBoolean)
{
int i2 = this.n;
if (paramBoolean) {}
for (int i1 = 16;; i1 = 0)
{
this.n = (i1 | i2 & 0xFFFFFFEF);
return this;
}
}
public ActionMenuItem setExclusiveCheckable(boolean paramBoolean)
{
int i2 = this.n;
if (paramBoolean) {}
for (int i1 = 4;; i1 = 0)
{
this.n = (i1 | i2 & 0xFFFFFFFB);
return this;
}
}
public MenuItem setIcon(int paramInt)
{
this.k = paramInt;
this.j = ContextCompat.getDrawable(this.l, paramInt);
return this;
}
public MenuItem setIcon(Drawable paramDrawable)
{
this.j = paramDrawable;
this.k = 0;
return this;
}
public MenuItem setIntent(Intent paramIntent)
{
this.g = paramIntent;
return this;
}
public MenuItem setNumericShortcut(char paramChar)
{
this.h = paramChar;
return this;
}
public MenuItem setOnActionExpandListener(MenuItem.OnActionExpandListener paramOnActionExpandListener)
{
throw new UnsupportedOperationException();
}
public MenuItem setOnMenuItemClickListener(MenuItem.OnMenuItemClickListener paramOnMenuItemClickListener)
{
this.m = paramOnMenuItemClickListener;
return this;
}
public MenuItem setShortcut(char paramChar1, char paramChar2)
{
this.h = paramChar1;
this.i = paramChar2;
return this;
}
public void setShowAsAction(int paramInt) {}
public SupportMenuItem setShowAsActionFlags(int paramInt)
{
setShowAsAction(paramInt);
return this;
}
public SupportMenuItem setSupportActionProvider(android.support.v4.view.ActionProvider paramActionProvider)
{
throw new UnsupportedOperationException();
}
public SupportMenuItem setSupportOnActionExpandListener(MenuItemCompat.OnActionExpandListener paramOnActionExpandListener)
{
return this;
}
public MenuItem setTitle(int paramInt)
{
this.e = this.l.getResources().getString(paramInt);
return this;
}
public MenuItem setTitle(CharSequence paramCharSequence)
{
this.e = paramCharSequence;
return this;
}
public MenuItem setTitleCondensed(CharSequence paramCharSequence)
{
this.f = paramCharSequence;
return this;
}
public MenuItem setVisible(boolean paramBoolean)
{
int i2 = this.n;
if (paramBoolean) {}
for (int i1 = 0;; i1 = 8)
{
this.n = (i1 | i2 & 0x8);
return this;
}
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/android/support/v7/view/menu/ActionMenuItem.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/