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

Commit c703b49e authored by Conley Owens's avatar Conley Owens Committed by Android Git Automerger
Browse files

am 54668b8a: am e1787009: Merge "Added null check on return value for getKeyDispatcherState()"

* commit '54668b8a':
  Added null check on return value for getKeyDispatcherState()
parents 7dcdfd79 54668b8a
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1489,6 +1489,10 @@ public class PopupWindow {
        @Override
        public boolean dispatchKeyEvent(KeyEvent event) {
            if (event.getKeyCode() == KeyEvent.KEYCODE_BACK) {
                if (getKeyDispatcherState() == null) {
                    return super.dispatchKeyEvent(event);
                }

                if (event.getAction() == KeyEvent.ACTION_DOWN
                        && event.getRepeatCount() == 0) {
                    KeyEvent.DispatcherState state = getKeyDispatcherState();