fu.java
3.31 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
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import android.content.DialogInterface.OnDismissListener;
import android.content.DialogInterface.OnKeyListener;
import android.support.v7.app.AlertDialog;
import android.support.v7.view.menu.ListMenuPresenter;
import android.support.v7.view.menu.MenuBuilder;
import android.support.v7.view.menu.MenuItemImpl;
import android.support.v7.view.menu.MenuPresenter.Callback;
import android.view.KeyEvent;
import android.view.KeyEvent.DispatcherState;
import android.view.View;
import android.view.Window;
import android.widget.ListAdapter;
public final class fu
implements DialogInterface.OnClickListener, DialogInterface.OnDismissListener, DialogInterface.OnKeyListener, MenuPresenter.Callback
{
public MenuBuilder a;
public AlertDialog b;
public ListMenuPresenter c;
private MenuPresenter.Callback d;
public fu(MenuBuilder paramMenuBuilder)
{
this.a = paramMenuBuilder;
}
public final void onClick(DialogInterface paramDialogInterface, int paramInt)
{
this.a.performItemAction((MenuItemImpl)this.c.getAdapter().getItem(paramInt), 0);
}
public final void onCloseMenu(MenuBuilder paramMenuBuilder, boolean paramBoolean)
{
if (((paramBoolean) || (paramMenuBuilder == this.a)) && (this.b != null)) {
this.b.dismiss();
}
if (this.d != null) {
this.d.onCloseMenu(paramMenuBuilder, paramBoolean);
}
}
public final void onDismiss(DialogInterface paramDialogInterface)
{
this.c.onCloseMenu(this.a, true);
}
public final boolean onKey(DialogInterface paramDialogInterface, int paramInt, KeyEvent paramKeyEvent)
{
if ((paramInt == 82) || (paramInt == 4)) {
if ((paramKeyEvent.getAction() == 0) && (paramKeyEvent.getRepeatCount() == 0))
{
paramDialogInterface = this.b.getWindow();
if (paramDialogInterface != null)
{
paramDialogInterface = paramDialogInterface.getDecorView();
if (paramDialogInterface != null)
{
paramDialogInterface = paramDialogInterface.getKeyDispatcherState();
if (paramDialogInterface != null)
{
paramDialogInterface.startTracking(paramKeyEvent, this);
return true;
}
}
}
}
else if ((paramKeyEvent.getAction() == 1) && (!paramKeyEvent.isCanceled()))
{
Object localObject = this.b.getWindow();
if (localObject != null)
{
localObject = ((Window)localObject).getDecorView();
if (localObject != null)
{
localObject = ((View)localObject).getKeyDispatcherState();
if ((localObject != null) && (((KeyEvent.DispatcherState)localObject).isTracking(paramKeyEvent)))
{
this.a.close(true);
paramDialogInterface.dismiss();
return true;
}
}
}
}
}
return this.a.performShortcut(paramInt, paramKeyEvent, 0);
}
public final boolean onOpenSubMenu(MenuBuilder paramMenuBuilder)
{
if (this.d != null) {
return this.d.onOpenSubMenu(paramMenuBuilder);
}
return false;
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/fu.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/