commit | 9e10d25732518f3d5740b5ede88f43cb28f51a14 | [log] [tgz] |
---|---|---|
author | Michael Wright <michaelwr@google.com> | Sat Sep 13 19:41:20 2014 -0700 |
committer | Rom Lemarchand <romlem@google.com> | Sun Sep 14 17:30:52 2014 +0000 |
tree | 9d34bbf0a799c9e22f8f9b1f88c85cab7ab70828 | |
parent | 07ab0871eea8e307f412f3d7433016bff4c275aa [diff] |
Correctly propagate SW_CAMERA_LENS_COVER_BIT Bug: 16034563 Change-Id: I3402d42056cda47fddadd09f838b1082d93fb00d
diff --git a/services/core/java/com/android/server/input/InputManagerService.java b/services/core/java/com/android/server/input/InputManagerService.java index 9c567ac..81b579d 100644 --- a/services/core/java/com/android/server/input/InputManagerService.java +++ b/services/core/java/com/android/server/input/InputManagerService.java
@@ -1387,7 +1387,7 @@ } 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); }