Merge "Update willFinishToHome during follow-up gestures"

This commit is contained in:
Evan Rosky authored and Android (Google) Code Review committed 2023-02-15 19:17:55 +00:00
commit 2e6aaa373a
1 file changed
+4
@@ -4837,6 +4837,10 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T
passedOverviewThreshold[0] = passed;
performHapticFeedback(HapticFeedbackConstants.VIRTUAL_KEY,
HapticFeedbackConstants.FLAG_IGNORE_VIEW_SETTING);
// Also update recents animation controller state if it is ongoing.
if (mRecentsAnimationController != null) {
mRecentsAnimationController.setWillFinishToHome(!passed);
}
}
});