diff options
| -rw-r--r-- | libs/WindowManager/Shell/src/com/android/wm/shell/dagger/WMShellModule.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/WindowManager/Shell/src/com/android/wm/shell/dagger/WMShellModule.java b/libs/WindowManager/Shell/src/com/android/wm/shell/dagger/WMShellModule.java index f46775b2e6aa..aee11b98d240 100644 --- a/libs/WindowManager/Shell/src/com/android/wm/shell/dagger/WMShellModule.java +++ b/libs/WindowManager/Shell/src/com/android/wm/shell/dagger/WMShellModule.java @@ -1273,7 +1273,7 @@ public abstract class WMShellModule { static Optional<DesktopPipTransitionObserver> provideDesktopPipTransitionObserver( Context context ) { - if (DesktopModeStatus.canEnterDesktopMode(context) + if (DesktopModeStatus.canEnterDesktopModeOrShowAppHandle(context) && DesktopModeFlags.ENABLE_DESKTOP_WINDOWING_PIP.isTrue()) { return Optional.of( new DesktopPipTransitionObserver()); |