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

Commit c7991fa1 authored by Jeff Brown's avatar Jeff Brown Committed by Android Git Automerger
Browse files

am 1b0e29ae: Merge "Avoid redundant store into array list."

# Via Android (Google) Code Review (1) and Jeff Brown (1)
* commit '1b0e29ae':
  Avoid redundant store into array list.
parents 32ceee97 1b0e29ae
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -212,8 +212,10 @@ public final class InputManager {
                } catch (RemoteException ex) {
                    throw new RuntimeException("Could not get input device information.", ex);
                }
            }
                if (inputDevice != null) {
                    mInputDevices.setValueAt(index, inputDevice);
                }
            }
            return inputDevice;
        }
    }
@@ -241,6 +243,8 @@ public final class InputManager {
                        inputDevice = mIm.getInputDevice(id);
                    } catch (RemoteException ex) {
                        // Ignore the problem for the purposes of this method.
                    }
                    if (inputDevice == null) {
                        continue;
                    }
                    mInputDevices.setValueAt(i, inputDevice);