Skip to content

Commit

Permalink
Revert D31628461
Browse files Browse the repository at this point in the history
Summary:
Revert of D31628461 (e494e4b), this diff broke Text selections in Android. Also I'm unable to reproduce original bug fixed by D31628461 (e494e4b)

changelog: [Android][Fixed] Fixed text selection, broken in 0.68

Reviewed By: ShikaSD

Differential Revision: D34700739

fbshipit-source-id: 85cde0032632dc77eb77f91b63c5d3c29b1bbbaf
  • Loading branch information
mdvacca authored and Andrei Shikov committed Mar 16, 2022
1 parent 7b33f20 commit d7d33c7
Showing 1 changed file with 0 additions and 11 deletions.
Expand Up @@ -19,7 +19,6 @@
import android.text.method.LinkMovementMethod;
import android.text.util.Linkify;
import android.view.Gravity;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.Nullable;
Expand Down Expand Up @@ -383,16 +382,6 @@ public int reactTagForTouch(float touchX, float touchY) {
return target;
}

@Override
public boolean onTouchEvent(MotionEvent ev) {
// The root view always assumes any view that was tapped wants the touch
// and sends the event to JS as such.
// We don't need to do bubbling in native (it's already happening in JS).
// For an explanation of bubbling and capturing, see
// http://javascript.info/tutorial/bubbling-and-capturing#capturing
return true;
}

@Override
protected boolean verifyDrawable(Drawable drawable) {
if (mContainsImages && getText() instanceof Spanned) {
Expand Down

0 comments on commit d7d33c7

Please sign in to comment.