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

Commit 13ec5618 authored by Lingyu Feng's avatar Lingyu Feng
Browse files

Prevent home activity being launched on a removed display

This CL fixes an issue where home activity could attempt to launch on a
display that has already been removed: this might happen if
DisplayManager has already removed the LogicalDisplay object, while
WindowManager has not yet received the `onDisplayRemoved()` event.

To prevent this, this CL adds a check of `Display#isValid()` in
`DisplayContent#isRemoved()` for non-default display.

Bug: 429409317
Test: DisplayContentTests
Flag: EXEMPT bugfix
Change-Id: I6290acc68228dd2427dfe786e3b5805cd7e6e654
parent 9cebcbfa
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