Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LatinIME
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
keyboard
LatinIME
Commits
be8ad77e
Commit
be8ad77e
authored
11 years ago
by
Jean Chalard
Browse files
Options
Downloads
Patches
Plain Diff
Comments improvements
Typo fixes and clarifications Change-Id: I0f7e0b6e665232bb995172fff10521c7f17599eb
parent
3a7ed5fd
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
java/src/com/android/inputmethod/latin/RichInputConnection.java
+2
-2
2 additions, 2 deletions
...rc/com/android/inputmethod/latin/RichInputConnection.java
with
2 additions
and
2 deletions
java/src/com/android/inputmethod/latin/RichInputConnection.java
+
2
−
2
View file @
be8ad77e
...
@@ -810,11 +810,11 @@ public final class RichInputConnection {
...
@@ -810,11 +810,11 @@ public final class RichInputConnection {
if
(
mExpectedSelStart
==
newSelStart
&&
mExpectedSelEnd
==
newSelEnd
)
return
true
;
if
(
mExpectedSelStart
==
newSelStart
&&
mExpectedSelEnd
==
newSelEnd
)
return
true
;
// This update is not belated if mExpectedSelStart and mExpectedSelEnd match the old
// This update is not belated if mExpectedSelStart and mExpectedSelEnd match the old
// values, and one of newSelStart or newSelEnd is updated to a different value. In this
// values, and one of newSelStart or newSelEnd is updated to a different value. In this
// case, t
here
is likely something other than the IME has moved the selection endpoint
// case,
i
t is likely
that
something other than the IME has moved the selection endpoint
// to the new value.
// to the new value.
if
(
mExpectedSelStart
==
oldSelStart
&&
mExpectedSelEnd
==
oldSelEnd
if
(
mExpectedSelStart
==
oldSelStart
&&
mExpectedSelEnd
==
oldSelEnd
&&
(
oldSelStart
!=
newSelStart
||
oldSelEnd
!=
newSelEnd
))
return
false
;
&&
(
oldSelStart
!=
newSelStart
||
oldSelEnd
!=
newSelEnd
))
return
false
;
// If nether of the above two cases hold
s
, then the system may be having trouble keeping up
// If ne
i
ther of the above two cases hold, then the system may be having trouble keeping up
// with updates. If 1) the selection is a cursor, 2) newSelStart is between oldSelStart
// with updates. If 1) the selection is a cursor, 2) newSelStart is between oldSelStart
// and mExpectedSelStart, and 3) newSelEnd is between oldSelEnd and mExpectedSelEnd, then
// and mExpectedSelStart, and 3) newSelEnd is between oldSelEnd and mExpectedSelEnd, then
// assume a belated update.
// assume a belated update.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment