am e2978c8d: Merge "Fix for an NPE in TextView." into gingerbread
Merge commit 'e2978c8dcafdf20c2b49999ec423cb5f76d4a583' into gingerbread-plus-aosp * commit 'e2978c8dcafdf20c2b49999ec423cb5f76d4a583': Fix for an NPE in TextView.
This commit is contained in:
@@ -6474,10 +6474,12 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
|
||||
if (!mFrozenWithFocus || (selStart < 0 || selEnd < 0)) {
|
||||
boolean selMoved = mSelectionMoved;
|
||||
|
||||
final int touchOffset =
|
||||
((SelectionModifierCursorController) mSelectionModifierCursorController).
|
||||
getMinTouchOffset();
|
||||
Selection.setSelection((Spannable) mText, touchOffset);
|
||||
if (mSelectionModifierCursorController != null) {
|
||||
final int touchOffset =
|
||||
((SelectionModifierCursorController) mSelectionModifierCursorController).
|
||||
getMinTouchOffset();
|
||||
Selection.setSelection((Spannable) mText, touchOffset);
|
||||
}
|
||||
|
||||
if (mMovement != null) {
|
||||
mMovement.onTakeFocus(this, (Spannable) mText, direction);
|
||||
|
||||
Reference in New Issue
Block a user