hd.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
import android.graphics.Canvas;
import android.support.v4.view.ViewCompat;
import android.support.v7.recyclerview.R.id;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.helper.ItemTouchUIUtil;
import android.view.View;
public final class hd
{
public static final class a
implements ItemTouchUIUtil
{
private static void a(Canvas paramCanvas, RecyclerView paramRecyclerView, View paramView, float paramFloat1, float paramFloat2)
{
paramCanvas.save();
paramCanvas.translate(paramFloat1, paramFloat2);
paramRecyclerView.drawChild(paramCanvas, paramView, 0L);
paramCanvas.restore();
}
public final void clearView(View paramView)
{
paramView.setVisibility(0);
}
public final void onDraw(Canvas paramCanvas, RecyclerView paramRecyclerView, View paramView, float paramFloat1, float paramFloat2, int paramInt, boolean paramBoolean)
{
if (paramInt != 2) {
a(paramCanvas, paramRecyclerView, paramView, paramFloat1, paramFloat2);
}
}
public final void onDrawOver(Canvas paramCanvas, RecyclerView paramRecyclerView, View paramView, float paramFloat1, float paramFloat2, int paramInt, boolean paramBoolean)
{
if (paramInt == 2) {
a(paramCanvas, paramRecyclerView, paramView, paramFloat1, paramFloat2);
}
}
public final void onSelected(View paramView)
{
paramView.setVisibility(4);
}
}
public static class b
implements ItemTouchUIUtil
{
public void clearView(View paramView)
{
ViewCompat.setTranslationX(paramView, 0.0F);
ViewCompat.setTranslationY(paramView, 0.0F);
}
public void onDraw(Canvas paramCanvas, RecyclerView paramRecyclerView, View paramView, float paramFloat1, float paramFloat2, int paramInt, boolean paramBoolean)
{
ViewCompat.setTranslationX(paramView, paramFloat1);
ViewCompat.setTranslationY(paramView, paramFloat2);
}
public void onDrawOver(Canvas paramCanvas, RecyclerView paramRecyclerView, View paramView, float paramFloat1, float paramFloat2, int paramInt, boolean paramBoolean) {}
public void onSelected(View paramView) {}
}
public static final class c
extends hd.b
{
public final void clearView(View paramView)
{
Object localObject = paramView.getTag(R.id.item_touch_helper_previous_elevation);
if ((localObject != null) && ((localObject instanceof Float))) {
ViewCompat.setElevation(paramView, ((Float)localObject).floatValue());
}
paramView.setTag(R.id.item_touch_helper_previous_elevation, null);
super.clearView(paramView);
}
public final void onDraw(Canvas paramCanvas, RecyclerView paramRecyclerView, View paramView, float paramFloat1, float paramFloat2, int paramInt, boolean paramBoolean)
{
float f3;
float f1;
int i;
if ((paramBoolean) && (paramView.getTag(R.id.item_touch_helper_previous_elevation) == null))
{
f3 = ViewCompat.getElevation(paramView);
int j = paramRecyclerView.getChildCount();
f1 = 0.0F;
i = 0;
if (i < j)
{
View localView = paramRecyclerView.getChildAt(i);
if (localView == paramView) {
break label118;
}
float f2 = ViewCompat.getElevation(localView);
if (f2 <= f1) {
break label118;
}
f1 = f2;
}
}
label118:
for (;;)
{
i += 1;
break;
ViewCompat.setElevation(paramView, 1.0F + f1);
paramView.setTag(R.id.item_touch_helper_previous_elevation, Float.valueOf(f3));
super.onDraw(paramCanvas, paramRecyclerView, paramView, paramFloat1, paramFloat2, paramInt, paramBoolean);
return;
}
}
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/hd.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/