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

Commit ea202bff authored by Paul Colta's avatar Paul Colta
Browse files

SensorPrivacyManager: Edit addSensorPrivacyListener API

Replace deprecated method call inside the listener declaration. This way
the expected method is called.

Test: make
Bug: 223387267
Change-Id: I0792cc664194c3a857b71483a34c6441dbb5e938
parent a228a73a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -465,7 +465,7 @@ public final class SensorPrivacyManager {
            @Override
            public void onSensorPrivacyChanged(SensorPrivacyChangedParams params) {
                if (params.getSensor() == sensor) {
                    listener.onSensorPrivacyChanged(params.getSensor(), params.isEnabled());
                    listener.onSensorPrivacyChanged(params);
                }
            }
            @Override