Commit 755c8bf
Dianne Hackborn
Fix issue #6319312: Consecutive call to Activity's onCreate()/onResume()...
...without onPause() in between
There was a bug in the handling of "always finish activities" where we
would go through destroying activities while in the middle of updating
the activity stack. This would result in the activity behind the
non-full-screen activity being created and then immediately destroyed,
which things were not expecting.
Change-Id: Idaa89089f7b1af7eb747d7b8f9f394beeb2d23fa1 parent ff0e8cd commit 755c8bf
File tree
3 files changed
+53
-12
lines changed- core/java/android/app
- services/java/com/android/server/am
3 files changed
+53
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
| 139 | + | |
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| |||
1172 | 1172 | | |
1173 | 1173 | | |
1174 | 1174 | | |
1175 | | - | |
| 1175 | + | |
1176 | 1176 | | |
1177 | 1177 | | |
1178 | | - | |
| 1178 | + | |
1179 | 1179 | | |
1180 | 1180 | | |
1181 | 1181 | | |
| |||
1378 | 1378 | | |
1379 | 1379 | | |
1380 | 1380 | | |
1381 | | - | |
| 1381 | + | |
1382 | 1382 | | |
1383 | 1383 | | |
1384 | 1384 | | |
| |||
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14508 | 14508 | | |
14509 | 14509 | | |
14510 | 14510 | | |
| 14511 | + | |
| 14512 | + | |
14511 | 14513 | | |
14512 | 14514 | | |
14513 | | - | |
| 14515 | + | |
14514 | 14516 | | |
14515 | 14517 | | |
14516 | 14518 | | |
| |||
14582 | 14584 | | |
14583 | 14585 | | |
14584 | 14586 | | |
14585 | | - | |
| 14587 | + | |
| 14588 | + | |
| 14589 | + | |
14586 | 14590 | | |
14587 | 14591 | | |
14588 | 14592 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | 48 | | |
50 | 49 | | |
51 | 50 | | |
| |||
289 | 288 | | |
290 | 289 | | |
291 | 290 | | |
292 | | - | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
293 | 304 | | |
294 | 305 | | |
295 | 306 | | |
| |||
384 | 395 | | |
385 | 396 | | |
386 | 397 | | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
387 | 404 | | |
388 | 405 | | |
389 | 406 | | |
| |||
3821 | 3838 | | |
3822 | 3839 | | |
3823 | 3840 | | |
3824 | | - | |
| 3841 | + | |
| 3842 | + | |
| 3843 | + | |
| 3844 | + | |
| 3845 | + | |
| 3846 | + | |
| 3847 | + | |
3825 | 3848 | | |
| 3849 | + | |
3826 | 3850 | | |
3827 | 3851 | | |
| 3852 | + | |
| 3853 | + | |
| 3854 | + | |
| 3855 | + | |
| 3856 | + | |
| 3857 | + | |
3828 | 3858 | | |
3829 | 3859 | | |
3830 | 3860 | | |
| 3861 | + | |
| 3862 | + | |
| 3863 | + | |
3831 | 3864 | | |
3832 | 3865 | | |
3833 | | - | |
| 3866 | + | |
| 3867 | + | |
3834 | 3868 | | |
3835 | 3869 | | |
3836 | | - | |
| 3870 | + | |
| 3871 | + | |
| 3872 | + | |
| 3873 | + | |
3837 | 3874 | | |
3838 | 3875 | | |
3839 | 3876 | | |
| |||
3847 | 3884 | | |
3848 | 3885 | | |
3849 | 3886 | | |
3850 | | - | |
| 3887 | + | |
3851 | 3888 | | |
3852 | 3889 | | |
3853 | 3890 | | |
| |||
0 commit comments