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

Commit 921c1929 authored by Vladimir Komsiyski's avatar Vladimir Komsiyski Committed by Automerger Merge Worker
Browse files

Merge "Remove redundant array allocation." into udc-dev am: eed16d7a am: 64eed269

parents 35dfb30e 64eed269
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -338,9 +338,7 @@ class InputController {
        }

        synchronized (mLock) {
            InputDeviceDescriptor[] values = mInputDeviceDescriptors.values().toArray(
                    new InputDeviceDescriptor[0]);
            for (InputDeviceDescriptor value : values) {
            for (InputDeviceDescriptor value : mInputDeviceDescriptors.values()) {
                if (value.mName.equals(deviceName)) {
                    throw new DeviceCreationException(
                            "Input device name already in use: " + deviceName);