summaryrefslogtreecommitdiff
path: root/libs/androidfw/ObbFile.cpp
diff options
context:
space:
mode:
author Riddle Hsu <riddlehsu@google.com> 2023-05-31 17:10:04 +0800
committer Riddle Hsu <riddlehsu@google.com> 2023-05-31 17:30:09 +0800
commit5bb5365b03772dea0bdace08ff6a3c1d74b3e5f1 (patch)
treef7553a69f0e7145f6b263aadd7601b57eb26c94e /libs/androidfw/ObbFile.cpp
parent9a350627142135febbd5f655da3427cc5645a2a7 (diff)
Allow a drawn reported activity to keep screen brightness
In case if the activity was requested to redraw for config change, then the draw state becomes DRAW_PENDING (isDrawn() will be false) but it is still visible on screen. The firstWindowDrawn is set when the main window of activity is drawn, and it cleared when the activity is stopped. So it can keep the state across redraw. Also simplify the conditions a bit because onScreen already means mHasSurface==true and isDisplayed()==onScreen&&isDrawn(). Bug: 284917190 Test: Launch an activity which sets screenBrightness and enter split screen. After resizing the divider, the screen brightness should not be changed. Change-Id: If31fc3ff492918e6486c0e16ef5ca3edb16b0bea
Diffstat (limited to 'libs/androidfw/ObbFile.cpp')
0 files changed, 0 insertions, 0 deletions