Use TEXT_HANDLE_MOVE in TextView behind the flag
This CL enables TextView to trigger HapticFeedbackConstants.TEXT_HANDLE_MOVE on devices that explicitly enable this feature with resource overlay. This CL should have no behavior change and no performance impact by default. Since the use case of HapticFeedbackConstants.TEXT_HANDLE_MOVE is when the user is manually moving the text insertion/selection handle on the touch screen, it is intentional that text handle move triggered by hardware keyboard, mouse, TextView APIs, IME APIs, and any other internal API calls do not trigger the haptic feedback even if the feature is enabled with resource overlay. Bug: 62454887 Test: Manually done as follows. * Not triggered on cursor move by mouse * Not triggered on cursor move by hardware keyboard * Not triggered on cursor move by IME * Triggered on cursor move by touch screen Change-Id: I5e78aafb065378ca88ba39ec507b121c8baa3631
Loading
Please register or sign in to comment