EdgeEffectCompat.java
4.45 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
package android.support.v4.widget;
import android.content.Context;
import android.graphics.Canvas;
import android.os.Build.VERSION;
import android.widget.EdgeEffect;
import ey;
public final class EdgeEffectCompat
{
private static final c b = new a();
private Object a;
static
{
if (Build.VERSION.SDK_INT >= 21)
{
b = new d();
return;
}
if (Build.VERSION.SDK_INT >= 14)
{
b = new b();
return;
}
}
public EdgeEffectCompat(Context paramContext)
{
this.a = b.a(paramContext);
}
public final boolean draw(Canvas paramCanvas)
{
return b.a(this.a, paramCanvas);
}
public final void finish()
{
b.b(this.a);
}
public final boolean isFinished()
{
return b.a(this.a);
}
public final boolean onAbsorb(int paramInt)
{
return b.a(this.a, paramInt);
}
@Deprecated
public final boolean onPull(float paramFloat)
{
return b.a(this.a, paramFloat);
}
public final boolean onPull(float paramFloat1, float paramFloat2)
{
return b.a(this.a, paramFloat1, paramFloat2);
}
public final boolean onRelease()
{
return b.c(this.a);
}
public final void setSize(int paramInt1, int paramInt2)
{
b.a(this.a, paramInt1, paramInt2);
}
static final class a
implements EdgeEffectCompat.c
{
public final Object a(Context paramContext)
{
return null;
}
public final void a(Object paramObject, int paramInt1, int paramInt2) {}
public final boolean a(Object paramObject)
{
return true;
}
public final boolean a(Object paramObject, float paramFloat)
{
return false;
}
public final boolean a(Object paramObject, float paramFloat1, float paramFloat2)
{
return false;
}
public final boolean a(Object paramObject, int paramInt)
{
return false;
}
public final boolean a(Object paramObject, Canvas paramCanvas)
{
return false;
}
public final void b(Object paramObject) {}
public final boolean c(Object paramObject)
{
return false;
}
}
static class b
implements EdgeEffectCompat.c
{
public final Object a(Context paramContext)
{
return new EdgeEffect(paramContext);
}
public final void a(Object paramObject, int paramInt1, int paramInt2)
{
((EdgeEffect)paramObject).setSize(paramInt1, paramInt2);
}
public final boolean a(Object paramObject)
{
return ((EdgeEffect)paramObject).isFinished();
}
public final boolean a(Object paramObject, float paramFloat)
{
return ey.a(paramObject, paramFloat);
}
public boolean a(Object paramObject, float paramFloat1, float paramFloat2)
{
return ey.a(paramObject, paramFloat1);
}
public final boolean a(Object paramObject, int paramInt)
{
((EdgeEffect)paramObject).onAbsorb(paramInt);
return true;
}
public final boolean a(Object paramObject, Canvas paramCanvas)
{
return ((EdgeEffect)paramObject).draw(paramCanvas);
}
public final void b(Object paramObject)
{
((EdgeEffect)paramObject).finish();
}
public final boolean c(Object paramObject)
{
paramObject = (EdgeEffect)paramObject;
((EdgeEffect)paramObject).onRelease();
return ((EdgeEffect)paramObject).isFinished();
}
}
static abstract interface c
{
public abstract Object a(Context paramContext);
public abstract void a(Object paramObject, int paramInt1, int paramInt2);
public abstract boolean a(Object paramObject);
public abstract boolean a(Object paramObject, float paramFloat);
public abstract boolean a(Object paramObject, float paramFloat1, float paramFloat2);
public abstract boolean a(Object paramObject, int paramInt);
public abstract boolean a(Object paramObject, Canvas paramCanvas);
public abstract void b(Object paramObject);
public abstract boolean c(Object paramObject);
}
static final class d
extends EdgeEffectCompat.b
{
public final boolean a(Object paramObject, float paramFloat1, float paramFloat2)
{
((EdgeEffect)paramObject).onPull(paramFloat1, paramFloat2);
return true;
}
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/android/support/v4/widget/EdgeEffectCompat.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/