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

Commit ad804e34 authored by Adam Powell's avatar Adam Powell
Browse files

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

not invoke haptic feedback

Change-Id: I6ba6b7e5b0ecedf721ab6d1bf87d7d2a92dc7200
parent e71ffeb7
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;
    }

    /**