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

Commit 45d378b7 authored by Winson Chung's avatar Winson Chung
Browse files

Adding null check to prevent monkey crash. (5263199)

Change-Id: I26372c8aa8022659582b31ca5a4279b9590f02f8
parent 4c64b66e
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1401,7 +1401,9 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback {
                if (event.getRepeatCount() > 0) break;
                if (featureId < 0) break;
                // Currently don't do anything with long press.
                if (dispatcher != null) {
                    dispatcher.startTracking(event, this);
                }
                return true;
            }