OSDN Git Service

Fixed that the screen could lock when launching camera
authorSelim Cinek <cinek@google.com>
Wed, 2 Aug 2017 23:45:51 +0000 (16:45 -0700)
committerSelim Cinek <cinek@google.com>
Thu, 3 Aug 2017 23:30:40 +0000 (16:30 -0700)
commitab55ba54faed4b6cd0dc70f3417fe12edcbd7bee
tree60e56a94477646155449fa3d192174ff1ee2e962
parent615f9e1277a6a3bad00972bdc978c6f5a5b2faa0
Fixed that the screen could lock when launching camera

Because of a race between going to sleep and checking the
double tap gesture, the lockscreen could potentially still
lock after the camera was triggered.

Test: manual, double tap on camera many times, observe no locking
Change-Id: Ibaf6e17086eb162832aa65953e5378c75e08bcdb
Fixes: 63913035
services/core/java/com/android/server/policy/PhoneWindowManager.java