We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d32b472 + ad804e3 commit 468fb9cCopy full SHA for 468fb9c
core/java/android/webkit/WebView.java
@@ -62,6 +62,7 @@
62
import android.util.EventLog;
63
import android.util.Log;
64
import android.view.Gravity;
65
+import android.view.HapticFeedbackConstants;
66
import android.view.HardwareCanvas;
67
import android.view.InputDevice;
68
import android.view.KeyCharacterMap;
@@ -4252,7 +4253,11 @@ public boolean performLongClick() {
4252
4253
* click action, look for a word under the click. If one is found,
4254
* animate the text selection into view.
4255
* FIXME: no animation code yet */
- return selectText();
4256
+ final boolean isSelecting = selectText();
4257
+ if (isSelecting) {
4258
+ performHapticFeedback(HapticFeedbackConstants.LONG_PRESS);
4259
+ }
4260
+ return isSelecting;
4261
}
4262
4263
/**
0 commit comments