2 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -10,11 +10,13 @@ class FadeInAnimation : StackAnimationOptions() {
10
10
alpha.put(" from" , 0 )
11
11
alpha.put(" to" , 1 )
12
12
alpha.put(" duration" , 300 )
13
- val content = JSONObject ()
14
- content .put(" alpha" , alpha)
13
+ val enter = JSONObject ()
14
+ enter .put(" alpha" , alpha)
15
15
val animation = JSONObject ()
16
- animation.put(" content" , content)
17
- mergeWith(StackAnimationOptions (animation))
16
+ animation.put(" enter" , enter)
17
+ val content = JSONObject ()
18
+ content.put(" content" , animation)
19
+ mergeWith(StackAnimationOptions (content))
18
20
} catch (e: JSONException ) {
19
21
e.printStackTrace()
20
22
}
Original file line number Diff line number Diff line change @@ -10,11 +10,13 @@ class FadeOutAnimation : StackAnimationOptions() {
10
10
alpha.put(" from" , 0 )
11
11
alpha.put(" to" , 1 )
12
12
alpha.put(" duration" , 300 )
13
- val content = JSONObject ()
14
- content .put(" alpha" , alpha)
13
+ val enter = JSONObject ()
14
+ enter .put(" alpha" , alpha)
15
15
val animation = JSONObject ()
16
- animation.put(" content" , content)
17
- mergeWith(StackAnimationOptions (animation))
16
+ animation.put(" enter" , enter)
17
+ val content = JSONObject ()
18
+ content.put(" content" , animation)
19
+ mergeWith(StackAnimationOptions (content))
18
20
} catch (e: JSONException ) {
19
21
e.printStackTrace()
20
22
}
0 commit comments