Merge "Fixing crash when activity doesn't have a window" into sc-v2-dev

This commit is contained in:
Winson Chung
2021-08-31 17:26:02 +00:00
committed by Android (Google) Code Review

View File

@@ -581,9 +581,12 @@ final class InputMonitor {
if (mAddRecentsAnimationInputConsumerHandle && shouldApplyRecentsInputConsumer) {
if (recentsAnimationController.updateInputConsumerForApp(
mRecentsAnimationInputConsumer.mWindowHandle)) {
mRecentsAnimationInputConsumer.show(mInputTransaction,
recentsAnimationController.getHighestLayerWindow());
mAddRecentsAnimationInputConsumerHandle = false;
final WindowState highestLayerWindow =
recentsAnimationController.getHighestLayerWindow();
if (highestLayerWindow != null) {
mRecentsAnimationInputConsumer.show(mInputTransaction, highestLayerWindow);
mAddRecentsAnimationInputConsumerHandle = false;
}
}
}