diff options
| author | 2025-02-13 03:45:35 -0800 | |
|---|---|---|
| committer | 2025-02-13 03:45:35 -0800 | |
| commit | 2e8d7cc741b17966a3a85b0bc0906d07eff4bc08 (patch) | |
| tree | c472d278309611515134508fcab0f1e9355f2f8a | |
| parent | c3c7585448ac25c754b6baf969284930a6cd4dce (diff) | |
| parent | 94562ef1c688c6386aad517234df84fcf20dff28 (diff) | |
Merge "Preventing start back navigation before new activity window created." into main
| -rw-r--r-- | services/core/java/com/android/server/wm/BackNavigationController.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/wm/BackNavigationController.java b/services/core/java/com/android/server/wm/BackNavigationController.java index e76a83453a9d..094ad187686c 100644 --- a/services/core/java/com/android/server/wm/BackNavigationController.java +++ b/services/core/java/com/android/server/wm/BackNavigationController.java @@ -190,7 +190,9 @@ class BackNavigationController { currentActivity = window.mActivityRecord; currentTask = window.getTask(); if ((currentTask != null && !currentTask.isVisibleRequested()) - || (currentActivity != null && !currentActivity.isVisibleRequested())) { + || (currentActivity != null && !currentActivity.isVisibleRequested()) + || (currentActivity != null && currentTask != null + && currentTask.getTopNonFinishingActivity() != currentActivity)) { // Closing transition is happening on focus window and should be update soon, // don't drive back navigation with it. ProtoLog.d(WM_DEBUG_BACK_PREVIEW, "Focus window is closing."); |