Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 468fb9ce authored by Adam Powell's avatar Adam Powell Committed by Android (Google) Code Review
Browse files

Merge "Fix bug 5321195 - Starting WebView text selection with long press does...

Merge "Fix bug 5321195 - Starting WebView text selection with long press does not invoke haptic feedback"
parents d32b472e ad804e34
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -62,6 +62,7 @@ import android.util.AttributeSet;
import android.util.EventLog;
import android.util.Log;
import android.view.Gravity;
import android.view.HapticFeedbackConstants;
import android.view.HardwareCanvas;
import android.view.InputDevice;
import android.view.KeyCharacterMap;
@@ -4252,7 +4253,11 @@ public class WebView extends AbsoluteLayout
         * click action, look for a word under the  click. If one is found,
         * animate the text selection into view.
         * FIXME: no animation code yet */
        return selectText();
        final boolean isSelecting = selectText();
        if (isSelecting) {
            performHapticFeedback(HapticFeedbackConstants.LONG_PRESS);
        }
        return isSelecting;
    }

    /**