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

Commit 00ae87d4 authored by Jeff Brown's avatar Jeff Brown
Browse files

Fix NPE in interceptKeyBeforeDispatching.

Bug: 3349786
Change-Id: Ic2f969ff8a654fdcfeca06199acca531ae5596d3
parent 428a731d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -5994,7 +5994,7 @@ public class WindowManagerService extends IWindowManager.Stub
         * ordinary dispatch. */
        public boolean interceptKeyBeforeDispatching(
                InputWindowHandle focus, KeyEvent event, int policyFlags) {
            WindowState windowState = (WindowState) focus.windowState;
            WindowState windowState = focus != null ? (WindowState) focus.windowState : null;
            return mPolicy.interceptKeyBeforeDispatching(windowState, event, policyFlags);
        }
        
@@ -6002,7 +6002,7 @@ public class WindowManagerService extends IWindowManager.Stub
         * the application did not handle. */
        public KeyEvent dispatchUnhandledKey(
                InputWindowHandle focus, KeyEvent event, int policyFlags) {
            WindowState windowState = (WindowState) focus.windowState;
            WindowState windowState = focus != null ? (WindowState) focus.windowState : null;
            return mPolicy.dispatchUnhandledKey(windowState, event, policyFlags);
        }