Commit ff7e6ef
Jeff Brown
Apply ValueAnimator scale factor immediately in WM.
Normally the ValueAnimator scale factor is applied the first
time a ViewRootImpl window session is created but that may
be too late for animators created by system services that
start early in the boot process. So set the scale factor
immediately whenever the setting changes.
Also make ValueAnimator.getDurationScale() accessible (but @hide)
for custom animators that want to apply the same scale to
their animations.
Change-Id: I0f5a750ab5b014f63848445435d8dca86f2a7ada1 parent 109025d commit ff7e6ef
File tree
2 files changed
+16
-3
lines changed- core/java/android/animation
- services/java/com/android/server/wm
2 files changed
+16
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
234 | 241 | | |
235 | 242 | | |
236 | 243 | | |
| |||
Lines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
| |||
900 | 901 | | |
901 | 902 | | |
902 | 903 | | |
903 | | - | |
904 | | - | |
| 904 | + | |
| 905 | + | |
905 | 906 | | |
906 | 907 | | |
907 | 908 | | |
| |||
5160 | 5161 | | |
5161 | 5162 | | |
5162 | 5163 | | |
5163 | | - | |
| 5164 | + | |
5164 | 5165 | | |
5165 | 5166 | | |
5166 | 5167 | | |
5167 | 5168 | | |
5168 | 5169 | | |
5169 | 5170 | | |
5170 | 5171 | | |
| 5172 | + | |
| 5173 | + | |
| 5174 | + | |
| 5175 | + | |
| 5176 | + | |
5171 | 5177 | | |
5172 | 5178 | | |
5173 | 5179 | | |
| |||
0 commit comments