Don't setEnableDrawingLiveTile(true) unless end target is RECENTS
This addresses the case where the gesture ends before an end
target is calculated. Also technically live tile is only
supported in RECENTS anyway.
Test: Open calculator, tap the nav region, ensure we don't go home
(Same for 2 button mode, but tap outside of deferred region)
Fixes: 186197537
Change-Id: I05e288ae952f8c8ea0fa72d8c6e6aa2b6dbb0b1e
diff --git a/quickstep/src/com/android/quickstep/views/RecentsView.java b/quickstep/src/com/android/quickstep/views/RecentsView.java
index 5761dfb..72364fd 100644
--- a/quickstep/src/com/android/quickstep/views/RecentsView.java
+++ b/quickstep/src/com/android/quickstep/views/RecentsView.java
@@ -1673,7 +1673,7 @@
}
setEnableFreeScroll(true);
- setEnableDrawingLiveTile(true);
+ setEnableDrawingLiveTile(mCurrentGestureEndTarget == GestureState.GestureEndTarget.RECENTS);
if (!LIVE_TILE.get()) {
setRunningTaskViewShowScreenshot(true);
}