mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
am 3952078a
: Extract fewer characters in getWordRangeAtCursor().
* commit '3952078a919caf9a44d271642122c413dbd487f9': Extract fewer characters in getWordRangeAtCursor().
This commit is contained in:
commit
efa968acd9
@ -619,9 +619,9 @@ public final class RichInputConnection implements PrivateCommandPerformer {
|
|||||||
if (!isConnected()) {
|
if (!isConnected()) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
final CharSequence before = mIC.getTextBeforeCursor(Constants.EDITOR_CONTENTS_CACHE_SIZE,
|
final CharSequence before = mIC.getTextBeforeCursor(LOOKBACK_CHARACTER_NUM,
|
||||||
InputConnection.GET_TEXT_WITH_STYLES);
|
InputConnection.GET_TEXT_WITH_STYLES);
|
||||||
final CharSequence after = mIC.getTextAfterCursor(Constants.EDITOR_CONTENTS_CACHE_SIZE,
|
final CharSequence after = mIC.getTextAfterCursor(LOOKBACK_CHARACTER_NUM,
|
||||||
InputConnection.GET_TEXT_WITH_STYLES);
|
InputConnection.GET_TEXT_WITH_STYLES);
|
||||||
if (before == null || after == null) {
|
if (before == null || after == null) {
|
||||||
return null;
|
return null;
|
||||||
|
Loading…
Reference in New Issue
Block a user