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

Commit 9e10d257 authored by Michael Wright's avatar Michael Wright Committed by Rom Lemarchand
Browse files

Correctly propagate SW_CAMERA_LENS_COVER_BIT

Bug: 16034563
Change-Id: I3402d42056cda47fddadd09f838b1082d93fb00d
parent 07ab0871
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1387,7 +1387,7 @@ public class InputManagerService extends IInputManager.Stub
        }

        if ((switchMask & SW_CAMERA_LENS_COVER_BIT) != 0) {
            final boolean lensCovered = ((switchValues & SW_CAMERA_LENS_COVER_BIT) == 0);
            final boolean lensCovered = ((switchValues & SW_CAMERA_LENS_COVER_BIT) != 0);
            mWindowManagerCallbacks.notifyCameraLensCoverSwitchChanged(whenNanos, lensCovered);
        }