Merge "Fix NPE when finishing remote animation"

This commit is contained in:
Chris Li
2022-10-26 02:58:12 +00:00
committed by Gerrit Code Review

View File

@@ -308,11 +308,11 @@ class RemoteAnimationController implements DeathRecipient {
mService.closeSurfaceTransaction("RemoteAnimationController#finished"); mService.closeSurfaceTransaction("RemoteAnimationController#finished");
mIsFinishing = false; mIsFinishing = false;
} }
}
// Reset input for all activities when the remote animation is finished. // Reset input for all activities when the remote animation is finished.
final Consumer<ActivityRecord> updateActivities = final Consumer<ActivityRecord> updateActivities =
activity -> activity.setDropInputForAnimation(false); activity -> activity.setDropInputForAnimation(false);
mDisplayContent.forAllActivities(updateActivities); mDisplayContent.forAllActivities(updateActivities);
}
setRunningRemoteAnimation(false); setRunningRemoteAnimation(false);
ProtoLog.i(WM_DEBUG_REMOTE_ANIMATIONS, "Finishing remote animation"); ProtoLog.i(WM_DEBUG_REMOTE_ANIMATIONS, "Finishing remote animation");
} }