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
This commit is contained in:
Hongwei Wang 2021-09-03 10:27:51 -07:00
parent bd42a9c12d
commit bfec974f59
1 changed files with 1 additions and 0 deletions

View File

@ -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();