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

Commit e9b6324f authored by Karthik Bharadwaj's avatar Karthik Bharadwaj Committed by Automerger Merge Worker
Browse files

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

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13606032

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I41797e162bb1609dedb1d778102c63d83f06569c
parents 92dfb295 f69fbd5a
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() {