commit | b9ba2b6768063b4a4135143bc5b6219fb9b3b22f | [log] [tgz] |
---|---|---|
author | John Spurlock <jspurlock@google.com> | Thu Aug 09 14:47:49 2012 -0400 |
committer | John Spurlock <jspurlock@google.com> | Thu Aug 09 14:47:49 2012 -0400 |
tree | 1f24c618d2811e1b914c0d4914defbd952b9a5ab | |
parent | 7c46e4380e6c50c30aad80807f87af25f000c7ff [diff] |
Fix screen timeout determination for starting dream. It turns out OFF_BECAUSE_OF_TIMEOUT is not the best indicator of actual screen timeout. For example, it is the reason passed down when acquiring a wake lock. This was causing us to launch Dreams in the wrong situations, and deadlocking on calls to WindowManager. This fix simply adds an additional check ensuring the intention is to turn the screen off. Change-Id: If8adff446b5b1fcb19424b45878b75bfd0552b90