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

Commit 2b708c99 authored by Victor Truong's avatar Victor Truong Committed by Android (Google) Code Review
Browse files

Merge "Fix blocked sensor chip to hide if settings change." into tm-qpr-dev

parents 31720197 c9e9ec39
Loading
Loading
Loading
Loading
+9 −10
Original line number Original line Diff line number Diff line
@@ -215,16 +215,15 @@ public class DreamOverlayStatusBarViewController extends ViewController<DreamOve
        final boolean cameraBlocked = mSensorPrivacyController
        final boolean cameraBlocked = mSensorPrivacyController
                .isSensorBlocked(SensorPrivacyManager.Sensors.CAMERA);
                .isSensorBlocked(SensorPrivacyManager.Sensors.CAMERA);
        @DreamOverlayStatusBarView.StatusIconType int iconType = Resources.ID_NULL;
        @DreamOverlayStatusBarView.StatusIconType int iconType = Resources.ID_NULL;
        if (micBlocked && cameraBlocked) {
        showIcon(
            iconType = DreamOverlayStatusBarView.STATUS_ICON_MIC_CAMERA_DISABLED;
                DreamOverlayStatusBarView.STATUS_ICON_CAMERA_DISABLED,
        } else if (!micBlocked && cameraBlocked) {
                !micBlocked && cameraBlocked);
            iconType = DreamOverlayStatusBarView.STATUS_ICON_CAMERA_DISABLED;
        showIcon(
        } else if (micBlocked && !cameraBlocked) {
                DreamOverlayStatusBarView.STATUS_ICON_MIC_DISABLED,
            iconType = DreamOverlayStatusBarView.STATUS_ICON_MIC_DISABLED;
                micBlocked && !cameraBlocked);
        }
        showIcon(
        if (iconType != Resources.ID_NULL) {
                DreamOverlayStatusBarView.STATUS_ICON_MIC_CAMERA_DISABLED,
            showIcon(iconType, true);
                micBlocked && cameraBlocked);
        }
    }
    }


    private String buildNotificationsContentDescription(int notificationCount) {
    private String buildNotificationsContentDescription(int notificationCount) {