diff options
author | Riddle Hsu <riddlehsu@google.com> | 2020-02-06 17:29:04 +0800 |
---|---|---|
committer | Riddle Hsu <riddlehsu@google.com> | 2020-02-06 17:29:04 +0800 |
commit | 410d9751035b2a268bc7b2f895d384bbb62bbc28 (patch) | |
tree | bb31aa75392dbc373e52545ee4450306bc0e9770 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 5f87e0dfee8dfae306928986372283d4a117aaef (diff) |
Use associated display to get real size
The display may be removed when initializing navigation bar
for the display (add and remove quickly). Display manager
will return null by the removed display id, then NPE.
By using the display context, it makes sure the display is
non-null because the context is created from createDisplayContext.
The getRealSize just does nothing if the display was removed.
And since the window will be removed soon, the states of these
pending remove components are not important.
Bug: 148952431
Test: atest MultiDisplaySystemDecorationTests
Change-Id: Iea5a0cab6e033418a93900627622034cd491b0fa
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions