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

Commit 61a43ee7 authored by Michael Wright's avatar Michael Wright
Browse files

Turn the device on if the camera lens is uncovered.

Bug: 17643810
Change-Id: I4747414224c3219bf91c0c83e969530cb20f96e5
parent 63c8e126
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -4093,6 +4093,7 @@ public class PhoneWindowManager implements WindowManagerPolicy {
            } else {
                intent = new Intent(MediaStore.INTENT_ACTION_STILL_IMAGE_CAMERA);
            }
            mPowerManager.wakeUp(whenNanos / 1000000);
            mContext.startActivityAsUser(intent, UserHandle.CURRENT_OR_SELF);
        }
        mCameraLensCoverState = lensCoverState;