Merge "Fix potential NPE when callback remote animator" am: 7fdf68db22 am: 80a173aca9 am: 97353972b7 am: 9b8636b58c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2227917 Change-Id: Ibde2b3b1d72f805c1ffa24e55ca8bd608ba66edb Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -3327,8 +3327,9 @@ class Task extends TaskFragment {
|
||||
ProtoLog.d(WM_DEBUG_RECENTS_ANIMATIONS,
|
||||
"applyAnimationUnchecked, control: %s, task: %s, transit: %s",
|
||||
control, asTask(), AppTransition.appTransitionOldToString(transit));
|
||||
final int size = sources != null ? sources.size() : 0;
|
||||
control.addTaskToTargets(this, (type, anim) -> {
|
||||
for (int i = 0; i < sources.size(); ++i) {
|
||||
for (int i = 0; i < size; ++i) {
|
||||
sources.get(i).onAnimationFinished(type, anim);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user