ViewPropertyAnimatorCompatSet.java
3.72 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
package android.support.v7.view;
import android.support.annotation.RestrictTo;
import android.support.v4.view.ViewPropertyAnimatorCompat;
import android.support.v4.view.ViewPropertyAnimatorListener;
import android.support.v4.view.ViewPropertyAnimatorListenerAdapter;
import android.view.View;
import android.view.animation.Interpolator;
import java.util.ArrayList;
import java.util.Iterator;
@RestrictTo({android.support.annotation.RestrictTo.Scope.LIBRARY_GROUP})
public class ViewPropertyAnimatorCompatSet
{
final ArrayList<ViewPropertyAnimatorCompat> a = new ArrayList();
ViewPropertyAnimatorListener b;
boolean c;
private long d = -1L;
private Interpolator e;
private final ViewPropertyAnimatorListenerAdapter f = new ViewPropertyAnimatorListenerAdapter()
{
private boolean b = false;
private int c = 0;
public final void onAnimationEnd(View paramAnonymousView)
{
int i = this.c + 1;
this.c = i;
if (i == ViewPropertyAnimatorCompatSet.this.a.size())
{
if (ViewPropertyAnimatorCompatSet.this.b != null) {
ViewPropertyAnimatorCompatSet.this.b.onAnimationEnd(null);
}
this.c = 0;
this.b = false;
ViewPropertyAnimatorCompatSet.this.c = false;
}
}
public final void onAnimationStart(View paramAnonymousView)
{
if (this.b) {}
do
{
return;
this.b = true;
} while (ViewPropertyAnimatorCompatSet.this.b == null);
ViewPropertyAnimatorCompatSet.this.b.onAnimationStart(null);
}
};
public void cancel()
{
if (!this.c) {
return;
}
Iterator localIterator = this.a.iterator();
while (localIterator.hasNext()) {
((ViewPropertyAnimatorCompat)localIterator.next()).cancel();
}
this.c = false;
}
public ViewPropertyAnimatorCompatSet play(ViewPropertyAnimatorCompat paramViewPropertyAnimatorCompat)
{
if (!this.c) {
this.a.add(paramViewPropertyAnimatorCompat);
}
return this;
}
public ViewPropertyAnimatorCompatSet playSequentially(ViewPropertyAnimatorCompat paramViewPropertyAnimatorCompat1, ViewPropertyAnimatorCompat paramViewPropertyAnimatorCompat2)
{
this.a.add(paramViewPropertyAnimatorCompat1);
paramViewPropertyAnimatorCompat2.setStartDelay(paramViewPropertyAnimatorCompat1.getDuration());
this.a.add(paramViewPropertyAnimatorCompat2);
return this;
}
public ViewPropertyAnimatorCompatSet setDuration(long paramLong)
{
if (!this.c) {
this.d = paramLong;
}
return this;
}
public ViewPropertyAnimatorCompatSet setInterpolator(Interpolator paramInterpolator)
{
if (!this.c) {
this.e = paramInterpolator;
}
return this;
}
public ViewPropertyAnimatorCompatSet setListener(ViewPropertyAnimatorListener paramViewPropertyAnimatorListener)
{
if (!this.c) {
this.b = paramViewPropertyAnimatorListener;
}
return this;
}
public void start()
{
if (this.c) {
return;
}
Iterator localIterator = this.a.iterator();
while (localIterator.hasNext())
{
ViewPropertyAnimatorCompat localViewPropertyAnimatorCompat = (ViewPropertyAnimatorCompat)localIterator.next();
if (this.d >= 0L) {
localViewPropertyAnimatorCompat.setDuration(this.d);
}
if (this.e != null) {
localViewPropertyAnimatorCompat.setInterpolator(this.e);
}
if (this.b != null) {
localViewPropertyAnimatorCompat.setListener(this.f);
}
localViewPropertyAnimatorCompat.start();
}
this.c = true;
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/android/support/v7/view/ViewPropertyAnimatorCompatSet.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/