diff options
author | Michael Wright <michaelwr@google.com> | 2014-09-24 14:36:43 -0700 |
---|---|---|
committer | Michael Wright <michaelwr@google.com> | 2014-09-25 22:19:13 +0000 |
commit | 61a43ee7a98ae825097d16a17b2217cc1c1c00c9 (patch) | |
tree | f509ed39bef582ac3b2b416c3f3c77cbf89e6ece /policy | |
parent | 63c8e126e7f0b1d0c984c08292962d57db925435 (diff) | |
download | frameworks_base-61a43ee7a98ae825097d16a17b2217cc1c1c00c9.zip frameworks_base-61a43ee7a98ae825097d16a17b2217cc1c1c00c9.tar.gz frameworks_base-61a43ee7a98ae825097d16a17b2217cc1c1c00c9.tar.bz2 |
Turn the device on if the camera lens is uncovered.
Bug: 17643810
Change-Id: I4747414224c3219bf91c0c83e969530cb20f96e5
Diffstat (limited to 'policy')
-rw-r--r-- | policy/src/com/android/internal/policy/impl/PhoneWindowManager.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java b/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java index 006f5db..73ff066 100644 --- a/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java +++ b/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java @@ -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; |