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

Commit c9affff7 authored by Roozbeh Pournader's avatar Roozbeh Pournader Committed by android-build-merger
Browse files

Merge "In onDragEvent(), don't assume text is Spannable" into oc-dev

am: 99e620ef

Change-Id: I5431864f75241c9f8b33064981ea332e7bef823b
parents 1c833407 99e620ef
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -11227,8 +11227,10 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
                return true;

            case DragEvent.ACTION_DRAG_LOCATION:
                if (mText instanceof Spannable) {
                    final int offset = getOffsetForPosition(event.getX(), event.getY());
                    Selection.setSelection((Spannable) mText, offset);
                }
                return true;

            case DragEvent.ACTION_DROP: