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

Commit 7e007ff8 authored by Nick Kralevich's avatar Nick Kralevich Committed by Gerrit Code Review
Browse files

Merge "Sensors could be disabled by any application"

parents 86e0d95d 6d7a4737
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -373,7 +373,8 @@ public class SystemSensorManager extends SensorManager {
                        for (Sensor s : l.getSensors()) {
                            disableSensorLocked(s);
                        }
                    } else if (l.removeSensor(sensor) == 0) {
                    // Check if the ListenerDelegate has the sensor it is trying to unregister.
                    } else if (l.hasSensor(sensor) && l.removeSensor(sensor) == 0) {
                        // if we have no more sensors enabled on this listener,
                        // take it off the list.
                        sListeners.remove(i);