diff options
| author | 2024-11-16 01:17:44 +0000 | |
|---|---|---|
| committer | 2024-11-16 01:17:44 +0000 | |
| commit | 390c4d8ab5d82253a179fd0e620907fb19731545 (patch) | |
| tree | 9a4ac31c5563409b395c8f76611e7e004d026641 | |
| parent | f6374942c5ed004dfe558ab09aefae7454c6cd12 (diff) | |
| parent | a44e441842736c93e89530e5cfc7d968bbc5d37a (diff) | |
Merge "Avoid notifying that launcher is visible when opening translucent targets." into main
| -rw-r--r-- | libs/WindowManager/Shell/src/com/android/wm/shell/recents/RecentsTransitionHandler.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/WindowManager/Shell/src/com/android/wm/shell/recents/RecentsTransitionHandler.java b/libs/WindowManager/Shell/src/com/android/wm/shell/recents/RecentsTransitionHandler.java index 417a6558ffcc..1c58dbbf71fd 100644 --- a/libs/WindowManager/Shell/src/com/android/wm/shell/recents/RecentsTransitionHandler.java +++ b/libs/WindowManager/Shell/src/com/android/wm/shell/recents/RecentsTransitionHandler.java @@ -1308,6 +1308,9 @@ public class RecentsTransitionHandler implements Transitions.TransitionHandler, // otherwise a new transition will notify the relevant observers if (returningToApp && allAppsAreTranslucent(mPausingTasks)) { mHomeTransitionObserver.notifyHomeVisibilityChanged(true); + } else if (!toHome && mState == STATE_NEW_TASK + && allAppsAreTranslucent(mOpeningTasks)) { + // We are opening a translucent app. Launcher is still visible so we do nothing. } else if (!toHome) { // For some transitions, we may have notified home activity that it became // visible. We need to notify the observer that we are no longer going home. |