From 4ca349c1a22925411a86281ac864628a9d9fa72b Mon Sep 17 00:00:00 2001 From: Matthew Ng Date: Fri, 23 Mar 2018 15:35:57 -0700 Subject: [PATCH] Use the correct haptics when changing pages Uses virtual key instead of keyboard tap. Test: scrub between pages Bug: 70180755 Change-Id: I72bde319610dd4acf59e5f4eb9f462c106b9a911 --- quickstep/src/com/android/quickstep/QuickScrubController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quickstep/src/com/android/quickstep/QuickScrubController.java b/quickstep/src/com/android/quickstep/QuickScrubController.java index 4f379e6afe..d868d122b7 100644 --- a/quickstep/src/com/android/quickstep/QuickScrubController.java +++ b/quickstep/src/com/android/quickstep/QuickScrubController.java @@ -140,7 +140,7 @@ public class QuickScrubController implements OnAlarmListener { int duration = Math.abs(pageToGoTo - mRecentsView.getNextPage()) * QUICKSCRUB_SNAP_DURATION_PER_PAGE; mRecentsView.snapToPage(pageToGoTo, duration); - mRecentsView.performHapticFeedback(HapticFeedbackConstants.KEYBOARD_TAP, + mRecentsView.performHapticFeedback(HapticFeedbackConstants.VIRTUAL_KEY, HapticFeedbackConstants.FLAG_IGNORE_VIEW_SETTING); } }