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

Commit e7769bc7 authored by Gilles Debunne's avatar Gilles Debunne
Browse files

Fix for NPE when dragging on TextView

Bug 6076166

Change-Id: I52b1e2edc451f0601b71af50e6056dcbe69add43
parent 35ae6e2a
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();