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

Commit 3a7f293e authored by Prabir Pradhan's avatar Prabir Pradhan Committed by Android (Google) Code Review
Browse files

Merge "InputController: Allow for null InputDevice object from getInputDevice" into main

parents a0ed7d03 e329239a
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -720,7 +720,9 @@ class InputController {
                private boolean isMatchingDevice(int deviceId) {
                    final InputDevice device = InputManagerGlobal.getInstance().getInputDevice(
                            deviceId);
                    Objects.requireNonNull(device, "Newly added input device was null.");
                    if (device == null) {
                        return false;
                    }
                    if (!device.getName().equals(deviceName)) {
                        return false;
                    }