Merge "Re-set PROCESS_TEXT selection if nothing was returned." into mnc-dr-dev am: 3bd3655fd0

am: 9e97c20ed9

* commit '9e97c20ed9f4377caf4de902659b0f97b7b4a90d':
  Re-set PROCESS_TEXT selection if nothing was returned.
This commit is contained in:
Abodunrinwa Toki
2015-10-20 18:33:36 +00:00
committed by android-build-merger

View File

@@ -1474,7 +1474,12 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
}
}
}
} else if (mText instanceof Spannable) {
// Reset the selection.
stopTextActionMode();
Selection.setSelection((Spannable) mText, getSelectionStart(), getSelectionEnd());
}
if (mEditor.hasSelectionController()) {
mEditor.startSelectionActionMode();
}