summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorRiddle Hsu <riddlehsu@google.com>2020-08-20 16:47:22 +0800
committerRiddle Hsu <riddlehsu@google.com>2020-08-20 20:59:47 +0800
commita431c22fdaefb8d6ce81e929c0074da71fd941ae (patch)
tree03a7598e9bee70dee5beebbe2cfa1f6369303416 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parentf0d495611dcf22c2536e12b3b2e6ca0a71f5e52c (diff)
Make the removal in finish-package-activities deterministic
Sometimes the removal of activity may be deferred by animating. And it is possible that the deferred record is removed with another finishing activity (finishIfPossible -> performSurfacePlacement -> handleCompleteDeferredRemoval) that causes index of bounds in forAllActivities (next index is size-1, but the size becomes size-2). Now the activities to finish are collected to an independent list so it won't be affected by any changes of hierarchy containers. The checking for home activity can also be removed because if home is restarted, it won't appear in the collected list. Bug: 160752989 Test: ActivityStackTests# \ testFinishDisabledPackageActivities_FinishAliveActivities testFinishDisabledPackageActivities_RemoveNonAliveActivities Change-Id: I2fcbac35fb23295cfe54856c5f08eae97fa6b87f
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions