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

Commit 005d36d1 authored by Aravind Akella's avatar Aravind Akella Committed by android-build-merger
Browse files

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

am: a817c90a

* commit 'a817c90a':
  Fix a possible race condition in SensorManager initialization.
parents a6e7b3ae a817c90a
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 */