Merge "Fix potential NPE when callback remote animator" am: 7fdf68db22 am: 80a173aca9
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2227917 Change-Id: I23d09d25c0a035f701c31b394ca1bb3a88a21a99 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -3339,8 +3339,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