Merge "Fixing crash when activity doesn't have a window" into sc-v2-dev
This commit is contained in:
@@ -581,11 +581,14 @@ final class InputMonitor {
|
|||||||
if (mAddRecentsAnimationInputConsumerHandle && shouldApplyRecentsInputConsumer) {
|
if (mAddRecentsAnimationInputConsumerHandle && shouldApplyRecentsInputConsumer) {
|
||||||
if (recentsAnimationController.updateInputConsumerForApp(
|
if (recentsAnimationController.updateInputConsumerForApp(
|
||||||
mRecentsAnimationInputConsumer.mWindowHandle)) {
|
mRecentsAnimationInputConsumer.mWindowHandle)) {
|
||||||
mRecentsAnimationInputConsumer.show(mInputTransaction,
|
final WindowState highestLayerWindow =
|
||||||
recentsAnimationController.getHighestLayerWindow());
|
recentsAnimationController.getHighestLayerWindow();
|
||||||
|
if (highestLayerWindow != null) {
|
||||||
|
mRecentsAnimationInputConsumer.show(mInputTransaction, highestLayerWindow);
|
||||||
mAddRecentsAnimationInputConsumerHandle = false;
|
mAddRecentsAnimationInputConsumerHandle = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (w.inPinnedWindowingMode()) {
|
if (w.inPinnedWindowingMode()) {
|
||||||
if (mAddPipInputConsumerHandle) {
|
if (mAddPipInputConsumerHandle) {
|
||||||
|
|||||||
Reference in New Issue
Block a user