Notify with onIsInDesktopModeChanged()
This CL renamed `onDesktopVisibilityChanged()` to `onIsInDesktopModeChanged()` and adds a parameter for the display ID on which the change is taking place. When the multiple desktops flags are disabled, the behavior should remain exactly as it is today; `onIsInDesktopModeChanged()` is triggered only for the `DEFAULT_DISPLAY`, and when the same old conditions occur. Bug: 394685645 Test: m Flag: com.android.window.flags.enable_multiple_desktops_frontend Flag: com.android.window.flags.enable_multiple_desktops_backend Change-Id: I31658b1b7932c787ebd430cee7e5c99bdd01e8c9
This commit is contained in:
1 parent
ad6fee6111
commit
2289c28f7f
3 files changed
+45
-18
No files matched your search
@@ -229,8 +229,10 @@ public class DisplayController implements ComponentCallbacks,
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDesktopVisibilityChanged(boolean visible) {
|
||||
notifyConfigChange();
|
||||
public void onIsInDesktopModeChanged(int displayId, boolean isInDesktopModeAndNotInOverview) {
|
||||
if (DEFAULT_DISPLAY == displayId) {
|
||||
notifyConfigChange();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user