Merge "Refactor all uses of DisplayController singleton INSTANCE" into main

This commit is contained in:
Treehugger Robot authored and Android (Google) Code Review committed 2025-02-12 05:47:46 -08:00
commit fb683dff89
51 files changed
+403 -148

No files matched your search

@@ -425,7 +425,7 @@ public class TaskbarManager {
*/
public void onUserUnlocked() {
mUserUnlocked = true;
DisplayController.INSTANCE.get(mPrimaryWindowContext).addChangeListener(
DisplayController.get(mPrimaryWindowContext).addChangeListener(
mRecreationListener);
recreateTaskbar();
addTaskbarRootViewToWindow(getDefaultDisplayId());
@@ -798,7 +798,7 @@ public class TaskbarManager {
mTaskbarBroadcastReceiver.unregisterReceiverSafely(mPrimaryWindowContext);
if (mUserUnlocked) {
DisplayController.INSTANCE.get(mPrimaryWindowContext).removeChangeListener(
DisplayController.get(mPrimaryWindowContext).removeChangeListener(
mRecreationListener);
}
SettingsCache.INSTANCE.get(mPrimaryWindowContext)