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

Commit f69fbd5a authored by Karthik Bharadwaj's avatar Karthik Bharadwaj Committed by Android (Google) Code Review
Browse files

Merge "Send Microphone Disabled Setting Regardless Of Current State" into sc-dev

parents 04d9bf62 fd461d23
Loading
Loading
Loading
Loading
+2 −7
Original line number Diff line number Diff line
@@ -124,9 +124,6 @@ public class ContextHubService extends IContextHubService.Stub {
    // True if WiFi is available for the Context Hub
    private boolean mIsWifiAvailable = false;

    // True if audio is disabled for the ContextHub
    private boolean mIsAudioDisabled = false;

    // Lock object for sendWifiSettingUpdate()
    private final Object mSendWifiSettingUpdateLock = new Object();

@@ -1084,11 +1081,9 @@ public class ContextHubService extends IContextHubService.Stub {
        SensorPrivacyManager manager = SensorPrivacyManager.getInstance(mContext);
        boolean disabled = manager.isIndividualSensorPrivacyEnabled(
                SensorPrivacyManager.INDIVIDUAL_SENSOR_MICROPHONE);
        if (mIsAudioDisabled != disabled) {
            mIsAudioDisabled = disabled;
        Log.d(TAG, "Mic Disabled Setting: " + disabled);
        mContextHubWrapper.onMicrophoneDisableSettingChanged(disabled);
    }
    }


    private String getCallingPackageName() {