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

Commit f7a66523 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Temporary NPE mitigation." into tm-dev am: 08009d5e

parents d3788b00 08009d5e
Loading
Loading
Loading
Loading
+5 −2
Original line number Original line Diff line number Diff line
@@ -1421,11 +1421,14 @@ public final class InputManager {
            }
            }


            mInputDevices = new SparseArray<InputDevice>();
            mInputDevices = new SparseArray<InputDevice>();
            // TODO(b/223905476): remove when the rootcause is fixed.
            if (ids != null) {
                for (int i = 0; i < ids.length; i++) {
                for (int i = 0; i < ids.length; i++) {
                    mInputDevices.put(ids[i], null);
                    mInputDevices.put(ids[i], null);
                }
                }
            }
            }
        }
        }
    }


    private void onInputDevicesChanged(int[] deviceIdAndGeneration) {
    private void onInputDevicesChanged(int[] deviceIdAndGeneration) {
        if (DEBUG) {
        if (DEBUG) {