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

Commit f94c04ab authored by Gilles Debunne's avatar Gilles Debunne Committed by Android (Google) Code Review
Browse files

Merge "Fix for NPE when dragging on TextView"

parents a65fb113 e7769bc7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -8619,7 +8619,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
    public boolean onDragEvent(DragEvent event) {
        switch (event.getAction()) {
            case DragEvent.ACTION_DRAG_STARTED:
                return hasInsertionController();
                return mEditor != null && hasInsertionController();

            case DragEvent.ACTION_DRAG_ENTERED:
                TextView.this.requestFocus();