Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f06d8127 authored by Winson Chung's avatar Winson Chung
Browse files

Fixing crash when activity doesn't have a window

Fixes: 198170256
Test: atest RecentsAnimationControllerTest
Change-Id: I74688d5c30b3c8d4032f8a443dd6de50c341c77c
parent 6cd63468
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -581,11 +581,14 @@ final class InputMonitor {
            if (mAddRecentsAnimationInputConsumerHandle && shouldApplyRecentsInputConsumer) {
                if (recentsAnimationController.updateInputConsumerForApp(
                        mRecentsAnimationInputConsumer.mWindowHandle)) {
                    mRecentsAnimationInputConsumer.show(mInputTransaction,
                            recentsAnimationController.getHighestLayerWindow());
                    final WindowState highestLayerWindow =
                            recentsAnimationController.getHighestLayerWindow();
                    if (highestLayerWindow != null) {
                        mRecentsAnimationInputConsumer.show(mInputTransaction, highestLayerWindow);
                        mAddRecentsAnimationInputConsumerHandle = false;
                    }
                }
            }

            if (w.inPinnedWindowingMode()) {
                if (mAddPipInputConsumerHandle) {