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

Skip to content
Commit efe0b92d authored by Kazuki Takise's avatar Kazuki Takise
Browse files

Maintain CompatUIInfo in CompatUIController

CompatUIInfo (esp. TaskListener) is needed for
DisplayCompatShowRestartDialog, but WindowDecoration, which invokes
the functionality, doens't have access to TaskListener.

Initially we proposed the approach to expose
ShellTaskOrg#getTaskListener() but as TaskListener is already
exposed with onCompatInfoChanged(), it turns out they asked us to
reuse it.

This change adds mTaskIdToCompatUIInfoMap in CompatUIInfo for this
purpose.

Flag: com.android.window.flags.enable_restart_menu_for_connected_displays
Bug: 32086679
Test: CompatUIControllerTest
Change-Id: I222ef8680907e77f752448f902f98f3b4c646c39
parent 6fcbeebd
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