summaryrefslogtreecommitdiff
path: root/libs/androidfw/ZipFileRO.cpp
diff options
context:
space:
mode:
author Lucas Silva <lusilva@google.com> 2024-03-20 20:28:53 -0400
committer Lucas Silva <lusilva@google.com> 2024-03-20 20:41:28 -0400
commit39aa2a5c230fcc05bd74b777776b11bc59e2f36f (patch)
treec487b4c7f0d4215f837ffef796e905e19907c89e /libs/androidfw/ZipFileRO.cpp
parentdb6f702b46e5d735548ba71eebecdec627c07bb9 (diff)
Allow dream to timeout in preview mode
If a dream is started in preview mode, it never times out currently due to the wakelock which is acquired by the KEEP_SCREEN_ON flag. This change avoids setting that flag on the dream window when in preview mode, which allows dream previews to timeout. If dreams are enabled, the dream will be restarted in non-preview mode after the timeout. Otherwise the screen will turn off. Fixes: 271872132 Test: flashed device and verified timeout occurs in preview mode and dreams remain bright and do not timeout in regular mode. Flag: NONE Change-Id: Id47408d714706a426e8eec4ddfeb6d3d7e481335
Diffstat (limited to 'libs/androidfw/ZipFileRO.cpp')
0 files changed, 0 insertions, 0 deletions