Fix NPE when finishing remote animation
Make sure the access is in the synchronized block. Fix: 254393965 Bug: 254320691 Test: Manual test Signed-off-by: miaojian <miaojian1993@gmail.com> Merged-In: Ia244b5ba2d3ba891319b32513841f397177cde0f Change-Id: Ia244b5ba2d3ba891319b32513841f397177cde0f
This commit is contained in:
@@ -320,11 +320,11 @@ class RemoteAnimationController implements DeathRecipient {
|
|||||||
} finally {
|
} finally {
|
||||||
mService.closeSurfaceTransaction("RemoteAnimationController#finished");
|
mService.closeSurfaceTransaction("RemoteAnimationController#finished");
|
||||||
}
|
}
|
||||||
|
// Reset input for all activities when the remote animation is finished.
|
||||||
|
final Consumer<ActivityRecord> updateActivities =
|
||||||
|
activity -> activity.setDropInputForAnimation(false);
|
||||||
|
mDisplayContent.forAllActivities(updateActivities);
|
||||||
}
|
}
|
||||||
// Reset input for all activities when the remote animation is finished.
|
|
||||||
final Consumer<ActivityRecord> updateActivities =
|
|
||||||
activity -> activity.setDropInputForAnimation(false);
|
|
||||||
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");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user