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

Commit c8855771 authored by Android (Google) Code Review's avatar Android (Google) Code Review Committed by The Android Open Source Project
Browse files

am b0b815da: Merge change 5845 into donut

Merge commit 'b0b815da'

* commit 'b0b815da':
  Always clear the TextView drag state whenever a touch begins.
parents 4a79a017 b0b815da
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -81,6 +81,12 @@ public class Touch {

        switch (event.getAction()) {
        case MotionEvent.ACTION_DOWN:
            ds = buffer.getSpans(0, buffer.length(), DragState.class);

            for (int i = 0; i < ds.length; i++) {
                buffer.removeSpan(ds[i]);
            }

            buffer.setSpan(new DragState(event.getX(), event.getY(),
                            widget.getScrollX(), widget.getScrollY()),
                    0, 0, Spannable.SPAN_MARK_MARK);