Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 6343aa2a authored by Riddle Hsu's avatar Riddle Hsu Committed by Arne Coucheron
Browse files

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
parent 20c41861
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment