Revert^2 "Restrict nav mode UI checks within primary display"

This reverts commit 9d7b814eec.

Reason for revert: Cache the taskbar primary display to reduce the number of binder calls and calm down Droidmonitor. Please check the difference between PS1 and PS2.

Bug: 414092022
Bug: 413244466
Bug: 408631713
Change-Id: I24138de2e2b9975fadcdf4a27402e06e212e4a19
This commit is contained in:
Toshiki Kikuchi committed 2025-04-29 18:00:47 -07:00
1 parent 9d7b814eec
commit d1a0e640cb
6 files changed
+40 -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.