From bfec974f591eeca5b1a174d8ef5312d3fcdad130 Mon Sep 17 00:00:00 2001 From: Hongwei Wang Date: Fri, 3 Sep 2021 10:27:51 -0700 Subject: [PATCH] Do not trigger PiP on tapping on TaskView Regression from ag/15158868, we should not send onUserLeaveHint on tapping on the app icon in Recents / Overview. Video: http://recall/-/aaaaaabFQoRHlzixHdtY/fr0fdecPEned7rMjgdWhCQ Bug: 198682451 Test: manual, tap on app icon in Recents, see video Change-Id: I66888a75eec30d7e8ba7e09059399381516812ac --- quickstep/src/com/android/quickstep/views/TaskView.java | 1 + 1 file changed, 1 insertion(+) diff --git a/quickstep/src/com/android/quickstep/views/TaskView.java b/quickstep/src/com/android/quickstep/views/TaskView.java index 8a20da6cfd..0e6c0fd318 100644 --- a/quickstep/src/com/android/quickstep/views/TaskView.java +++ b/quickstep/src/com/android/quickstep/views/TaskView.java @@ -838,6 +838,7 @@ public class TaskView extends FrameLayout implements Reusable { RecentsView recentsView = getRecentsView(); recentsView.switchToScreenshot( () -> recentsView.finishRecentsAnimation(true /* toRecents */, + false /* shouldPip */, this::showTaskMenu)); } else { showTaskMenu();