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

Commit a817c90a authored by Aravind Akella's avatar Aravind Akella Committed by Android (Google) Code Review
Browse files

Merge "Fix a possible race condition in SensorManager initialization." into mnc-dr-dev

parents 7ba59c35 a05df455
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -78,7 +78,6 @@ public class SystemSensorManager extends SensorManager {
                sSensorModuleInitialized = true;
                nativeClassInit();
            }
        }

            // initialize the sensor list
            for (int index = 0;;++index) {
@@ -88,6 +87,7 @@ public class SystemSensorManager extends SensorManager {
                mHandleToSensor.append(sensor.getHandle(), sensor);
            }
        }
    }


    /** @hide */