Merge "Propagate the display id with SysUIState changes to launcher" into main
This commit is contained in:
commit
eb808032f1
4 files changed
+137
-44
No files matched your search
@@ -756,13 +756,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