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

Commit a05df455 authored by Aravind Akella's avatar Aravind Akella
Browse files

Fix a possible race condition in SensorManager initialization.

Bug: 24526176
Change-Id: Ib8bae6eee16a5b787d3c2da6ef03af311cfdfadc
parent bdf952aa
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 */