[CD Taskbar] Pass displayId to TouchInteractionService for per-display wallpaper updates
Modified TouchInteractionService.updateWallpaperVisibility() to accept a displayId parameter. This allows TaskbarManager to apply wallpaper visibility changes (e.g., dimming) on a per-display basis, ensuring correct behavior with multiple connected displays. This change addresses the issue where wallpaper dimming was not being applied correctly on secondary displays when the Taskbar was visible. Bug: 385200423 Test: Manual Flag: EXEMPT not adding behavior Change-Id: I72ddeb6df29f84c16f91d5c6de446266bee98342
This commit is contained in:
1 parent
179403d37d
commit
cb5ce3c3ec
2 files changed
+9
-6
No files matched your search
@@ -590,9 +590,12 @@ public class TaskbarManager {
|
||||
}
|
||||
}
|
||||
|
||||
public void setWallpaperVisible(boolean isVisible) {
|
||||
/**
|
||||
* Sets wallpaper visibility for specific display.
|
||||
*/
|
||||
public void setWallpaperVisible(int displayId, boolean isVisible) {
|
||||
mSharedState.wallpaperVisible = isVisible;
|
||||
TaskbarActivityContext taskbar = getTaskbarForDisplay(getDefaultDisplayId());
|
||||
TaskbarActivityContext taskbar = getTaskbarForDisplay(displayId);
|
||||
if (taskbar != null) {
|
||||
taskbar.setWallpaperVisible(isVisible);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user