[CD Taskbar] Refactor to Listen to Display Ready/Removed Signals

Allow for TaskbarManager to listen to the TaskbarDelegate signals for the addition and removal of displays in extended mode.

Flag: EXEMPT not adding new behavior
Bug: 382351718
Test: Manual
Change-Id: I1d78400966755ed462d3d92d9356e40fa61ada32
This commit is contained in:
Sukesh Ram committed 2025-01-15 23:28:10 +00:00
1 parent caa9404aa0
commit bd82d83358
2 files changed
+30

No files matched your search

@@ -687,6 +687,20 @@ public class TaskbarManager {
}
}
/**
* Signal from SysUI indicating that a non-mirroring display was just connected to the
* primary device.
*/
public void onDisplayReady(int displayId) {
}
/**
* Signal from SysUI indicating that a previously connected non-mirroring display was just
* removed from the primary device.
*/
public void onDisplayRemoved(int displayId) {
}
private void removeActivityCallbacksAndListeners() {
if (mActivity != null) {
mActivity.removeOnDeviceProfileChangeListener(mDebugActivityDeviceProfileChanged);