Merge "Fixing crash when activity doesn't have a window" into sc-v2-dev am: 1d70478e12
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15720457 Change-Id: I02784e24d95c52c2d54722193ee7f2efa992f41d
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user