Restrict nav mode UI checks within primary display

This CL fixes the nav mode UI checks which currently assumes “navigation
mode” takes effect on all displays although the mode is only effective
on the primary display.

Flag: EXEMPT - test fix
Fix: 408631713
Test: atest WMShellFlickerTestsDesktopMode:com.android.wm.shell.flicker.OpenAppWithExternalDisplayConnected
Change-Id: I29f33957d696e9d5afda844f69388b74a8f78b77
This commit is contained in:
Toshiki Kikuchi committed 2025-04-20 19:09:38 -07:00
1 parent 4c4db8ceb5
commit 3ccfdbf6c4
6 files changed
+37 -4

No files matched your search

@@ -1686,6 +1686,13 @@ public class TaskbarManagerImpl implements DisplayDecorationListener {
return SystemUiProxy.INSTANCE.get(mBaseContext).getFocusState().getFocusedDisplayId();
}
/**
* Returns the primary display id associated with this manager.
*/
public int getPrimaryDisplayId() {
return mPrimaryDisplayId;
}
/**
* Logs debug information about the TaskbarManager for primary display.
* @param debugReason A string describing the reason for the debug log.