Commit 83339b4
Craig Mautner
Fix Home key causes wrong animation
Wallpaper logic assumed that if mWallpaperTarget was non-null then
any wallpaper animation should be exiting. However, if the existing
wallpaper target was already animating away then mWallpaperTarget
remains non-null until it is completely gone. Pressing Home during
this time was causing the next animation to exit rather than reverse
and enter.
This fix looks to see if the wallpaper target is animating and if it
is to treat it as null for the purpose of determining which direction
the animation should go.
Fixes bug 6407941.
Change-Id: I731267328db0f9972a5aed6f214962f96737dd071 parent 1b332db commit 83339b4
File tree
3 files changed
+35
-16
lines changed- services/java/com/android/server/wm
3 files changed
+35
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| 143 | + | |
| 144 | + | |
143 | 145 | | |
144 | 146 | | |
145 | 147 | | |
| |||
154 | 156 | | |
155 | 157 | | |
156 | 158 | | |
157 | | - | |
| 159 | + | |
158 | 160 | | |
159 | 161 | | |
| 162 | + | |
| 163 | + | |
160 | 164 | | |
161 | 165 | | |
162 | 166 | | |
| |||
246 | 250 | | |
247 | 251 | | |
248 | 252 | | |
249 | | - | |
250 | | - | |
251 | | - | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
252 | 256 | | |
253 | 257 | | |
254 | 258 | | |
| |||
Lines changed: 15 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | | - | |
134 | | - | |
135 | 133 | | |
136 | 134 | | |
137 | 135 | | |
| |||
3231 | 3229 | | |
3232 | 3230 | | |
3233 | 3231 | | |
| 3232 | + | |
| 3233 | + | |
| 3234 | + | |
3234 | 3235 | | |
3235 | 3236 | | |
3236 | 3237 | | |
| 3238 | + | |
| 3239 | + | |
| 3240 | + | |
3237 | 3241 | | |
3238 | 3242 | | |
3239 | 3243 | | |
| 3244 | + | |
| 3245 | + | |
| 3246 | + | |
3240 | 3247 | | |
3241 | 3248 | | |
3242 | 3249 | | |
| |||
3295 | 3302 | | |
3296 | 3303 | | |
3297 | 3304 | | |
3298 | | - | |
| 3305 | + | |
3299 | 3306 | | |
3300 | 3307 | | |
3301 | 3308 | | |
| |||
7810 | 7817 | | |
7811 | 7818 | | |
7812 | 7819 | | |
7813 | | - | |
| 7820 | + | |
| 7821 | + | |
| 7822 | + | |
7814 | 7823 | | |
7815 | 7824 | | |
7816 | 7825 | | |
| |||
8117 | 8126 | | |
8118 | 8127 | | |
8119 | 8128 | | |
8120 | | - | |
8121 | | - | |
| 8129 | + | |
| 8130 | + | |
8122 | 8131 | | |
8123 | 8132 | | |
8124 | 8133 | | |
| |||
Lines changed: 12 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
380 | 380 | | |
381 | 381 | | |
382 | 382 | | |
383 | | - | |
384 | | - | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
385 | 386 | | |
386 | 387 | | |
387 | 388 | | |
| |||
393 | 394 | | |
394 | 395 | | |
395 | 396 | | |
396 | | - | |
| 397 | + | |
| 398 | + | |
397 | 399 | | |
398 | 400 | | |
399 | 401 | | |
| |||
526 | 528 | | |
527 | 529 | | |
528 | 530 | | |
529 | | - | |
530 | | - | |
| 531 | + | |
| 532 | + | |
531 | 533 | | |
532 | 534 | | |
533 | 535 | | |
| |||
1062 | 1064 | | |
1063 | 1065 | | |
1064 | 1066 | | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
1065 | 1070 | | |
1066 | 1071 | | |
1067 | 1072 | | |
| |||
1145 | 1150 | | |
1146 | 1151 | | |
1147 | 1152 | | |
| 1153 | + | |
1148 | 1154 | | |
1149 | 1155 | | |
1150 | 1156 | | |
| |||
1285 | 1291 | | |
1286 | 1292 | | |
1287 | 1293 | | |
1288 | | - | |
| 1294 | + | |
1289 | 1295 | | |
1290 | 1296 | | |
1291 | 1297 | | |
| |||
0 commit comments