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

Commit 6f0e8e89 authored by Eric Laurent's avatar Eric Laurent Committed by Android (Google) Code Review
Browse files

Revert "audio policy: fix sensor privacy listener"

This reverts commit 60aa4d06.

Bug: 270570809
Bug: 258021433
Reason for revert: b/270570809

Change-Id: I6e17d5d7a598fb01f3bf75f2df88d63d187231d9
parent 60aa4d06
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -1803,14 +1803,12 @@ void AudioPolicyService::UidPolicy::dumpInternals(int fd) {
void AudioPolicyService::SensorPrivacyPolicy::registerSelf() {
    SensorPrivacyManager spm;
    mSensorPrivacyEnabled = spm.isSensorPrivacyEnabled();
    (void)spm.addToggleSensorPrivacyListener(this);
    spm.addSensorPrivacyListener(this);
}

void AudioPolicyService::SensorPrivacyPolicy::unregisterSelf() {
    SensorPrivacyManager spm;
    spm.removeSensorPrivacyListener(this);
    spm.removeToggleSensorPrivacyListener(this);
}

bool AudioPolicyService::SensorPrivacyPolicy::isSensorPrivacyEnabled() {