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

Commit 94b2e552 authored by Lingyu Feng's avatar Lingyu Feng
Browse files

Guard "Prevent activity being launched on a display that cannot host

tasks" by the display content mode flag

Since Display.canHostTasks() is guarded by the display content mode
flag, we should check both flags when determining if a display is being
used for mirroring. Otherwise, an exception will be thrown even if the
display is not mirroring.

Bug: 427816070
Flag: com.android.server.display.feature.flags.enable_display_content_mode_management
Test: presubmit
Change-Id: I344d39b7bfa279c4e374ae71eea0f18156c539c7
parent 559b2b6a
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