Merge "Ignore tap ouside for transient-hide task" into udc-dev

This commit is contained in:
Riddle Hsu
2023-04-14 02:45:09 +00:00
committed by Android (Google) Code Review
2 changed files with 14 additions and 1 deletions

View File

@@ -540,7 +540,12 @@ public class RecentsTransitionHandler implements Transitions.TransitionHandler {
mergeActivityOnly(info, t);
} else if (!didMergeThings) {
// Didn't recognize anything in incoming transition so don't merge it.
Slog.w(TAG, "Don't know how to merge this transition.");
Slog.w(TAG, "Don't know how to merge this transition, foundRecentsClosing="
+ foundRecentsClosing);
if (foundRecentsClosing) {
mWillFinishToHome = false;
cancel(false /* toHome */);
}
return;
}
// At this point, we are accepting the merge.

View File

@@ -8526,6 +8526,14 @@ public class WindowManagerService extends IWindowManager.Stub
// while in overview
return;
}
final WindowState w = t.getWindowState();
if (w != null) {
final Task task = w.getTask();
if (task != null && w.mTransitionController.isTransientHide(task)) {
// Don't disturb transient animation by accident touch.
return;
}
}
ProtoLog.i(WM_DEBUG_FOCUS_LIGHT, "onPointerDownOutsideFocusLocked called on %s",
t);