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

Commit 22754e86 authored by Vaibhav Devmurari's avatar Vaibhav Devmurari Committed by Android (Google) Code Review
Browse files

Merge "Fix NumberFormatException in LauncherTests" into main

parents 344bf3fd 21f06911
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2423,7 +2423,7 @@ public final class LauncherInstrumentation {
        eventChecker.setLogExclusionRule(event -> {
            Matcher matcher = Pattern.compile("KeyEvent.*flags=0x([0-9a-fA-F]+)").matcher(event);
            if (matcher.find()) {
                int keyEventFlags = Integer.parseInt(matcher.group(1), 16);
                long keyEventFlags = Long.parseLong(matcher.group(1), 16);
                // ignore KeyEvents with FLAG_CANCELED
                return (keyEventFlags & KeyEvent.FLAG_CANCELED) != 0;
            }