Propagate the display id with SysUIState changes to launcher
This changes the ILauncherProxy.aidl interface to also allow propagating the display id from SysUI to launcher for each SysUIState update. The SysUI part of filling SysUI state correctly has not been implemented yet. But for now, only default display flags are propagated anyway. On the launcher side, the sysui state is propagated correctly to each taskbar instance (there is one for each display) Bug: 362719719 Bug: 398011576 Bug: 399371607 Test: LauncherProxyServiceTest Flag: com.android.systemui.shade_window_goes_around Change-Id: Ic9fa55ca82e4fe395a915c4d611afc8835c5d65d
This commit is contained in:
1 parent
269fb15e97
commit
6bccfb49c2
4 files changed
+137
-44
No files matched your search
@@ -705,13 +705,14 @@ public class TaskbarManager {
|
||||
}
|
||||
}
|
||||
|
||||
public void onSystemUiFlagsChanged(@SystemUiStateFlags long systemUiStateFlags) {
|
||||
/** Called when the SysUI flags for a given display change. */
|
||||
public void onSystemUiFlagsChanged(@SystemUiStateFlags long systemUiStateFlags, int displayId) {
|
||||
if (DEBUG) {
|
||||
Log.d(TAG, "SysUI flags changed: " + formatFlagChange(systemUiStateFlags,
|
||||
mSharedState.sysuiStateFlags, QuickStepContract::getSystemUiStateString));
|
||||
}
|
||||
mSharedState.sysuiStateFlags = systemUiStateFlags;
|
||||
TaskbarActivityContext taskbar = getTaskbarForDisplay(getDefaultDisplayId());
|
||||
TaskbarActivityContext taskbar = getTaskbarForDisplay(displayId);
|
||||
if (taskbar != null) {
|
||||
taskbar.updateSysuiStateFlags(systemUiStateFlags, false /* fromInit */);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user