diff options
author | Garfield Tan <xutan@google.com> | 2021-04-27 16:54:58 -0700 |
---|---|---|
committer | Garfield Tan <xutan@google.com> | 2021-04-28 10:10:48 -0700 |
commit | f2dd033aad4ffd8c0f8ec1541f68214585093f95 (patch) | |
tree | d39691438f79c6a2e68b8bd93a3fcf07e0eafeb9 /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | 564ef6e7e00428116d5308fd16181af71eb2695e (diff) |
Add Dimmer to RootDisplayArea
There are 2 reasons that led to this change.
Right now on trusted displays Dimmer is offered on windowed
magnification display area, but no one offers it on untrusted displays.
There is no guarantee that windowed manification display area always
exists either on all OEM.
In Task#getDimmer() if the task is fullscreen but is translucent it asks
for a dimmer from one of its ancestors, and WindowState#applyDims() uses
Dimmer as if it always can get one. There can also be system dialogs
(e.g. ANR dialogs) that don't belong to any TaskDisplayArea that also
needs a Dimmer.
Therefore add a dimmer to RootDisplayArea.
Bug: 186436456
Test: atest TaskTests
Change-Id: I284b60124e27496352c27f446a2742e3e4756ec9
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions