Scene.java
2.43 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
package android.support.transition;
import android.content.Context;
import android.os.Build.VERSION;
import android.support.annotation.LayoutRes;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.util.SparseArray;
import android.view.View;
import android.view.ViewGroup;
import ao;
import ap;
import aq;
import ar;
import at;
import au;
import av;
import aw;
public class Scene
{
private static av b = new au();
aq a;
static
{
if (Build.VERSION.SDK_INT >= 21)
{
b = new at();
return;
}
if (Build.VERSION.SDK_INT >= 19)
{
b = new aw();
return;
}
}
public Scene(@NonNull ViewGroup paramViewGroup)
{
this.a = a();
this.a.a(paramViewGroup);
}
public Scene(@NonNull ViewGroup paramViewGroup, @NonNull View paramView)
{
this.a = a();
this.a.a(paramViewGroup, paramView);
}
private Scene(aq paramaq)
{
this.a = paramaq;
}
private static aq a()
{
if (Build.VERSION.SDK_INT >= 21) {
return new ao();
}
if (Build.VERSION.SDK_INT >= 19) {
return new ar();
}
return new ap();
}
@NonNull
public static Scene getSceneForLayout(@NonNull ViewGroup paramViewGroup, @LayoutRes int paramInt, @NonNull Context paramContext)
{
SparseArray localSparseArray = (SparseArray)paramViewGroup.getTag(R.id.transition_scene_layoutid_cache);
if (localSparseArray == null)
{
localSparseArray = new SparseArray();
paramViewGroup.setTag(R.id.transition_scene_layoutid_cache, localSparseArray);
}
for (;;)
{
Scene localScene = (Scene)localSparseArray.get(paramInt);
if (localScene != null) {
return localScene;
}
paramViewGroup = new Scene(b.a(paramViewGroup, paramInt, paramContext));
localSparseArray.put(paramInt, paramViewGroup);
return paramViewGroup;
}
}
public void enter()
{
this.a.a();
}
public void exit()
{
this.a.b();
}
@NonNull
public ViewGroup getSceneRoot()
{
return this.a.c();
}
public void setEnterAction(@Nullable Runnable paramRunnable)
{
this.a.a(paramRunnable);
}
public void setExitAction(@Nullable Runnable paramRunnable)
{
this.a.b(paramRunnable);
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/android/support/transition/Scene.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/