Merge "Re-set PROCESS_TEXT selection if nothing was returned." into mnc-dr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
3bd3655fd0
@@ -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()) {
|
if (mEditor.hasSelectionController()) {
|
||||||
mEditor.startSelectionActionMode();
|
mEditor.startSelectionActionMode();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user