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
296adf57
Commit
296adf57
authored
11 years ago
by
Jean Chalard
Committed by
Android (Google) Code Review
11 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Change a heuristic and add a log."
parents
1269ae31
3b4c1d30
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
java/src/com/android/inputmethod/latin/LatinIME.java
+2
-0
2 additions, 0 deletions
java/src/com/android/inputmethod/latin/LatinIME.java
java/src/com/android/inputmethod/latin/RichInputConnection.java
+3
-3
3 additions, 3 deletions
...rc/com/android/inputmethod/latin/RichInputConnection.java
with
5 additions
and
3 deletions
java/src/com/android/inputmethod/latin/LatinIME.java
+
2
−
0
View file @
296adf57
...
@@ -750,6 +750,8 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
...
@@ -750,6 +750,8 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
+
", word caps = "
+
", word caps = "
+
((
editorInfo
.
inputType
&
InputType
.
TYPE_TEXT_FLAG_CAP_WORDS
)
!=
0
));
+
((
editorInfo
.
inputType
&
InputType
.
TYPE_TEXT_FLAG_CAP_WORDS
)
!=
0
));
}
}
Log
.
i
(
TAG
,
"Starting input. Cursor position = "
+
editorInfo
.
initialSelStart
+
","
+
editorInfo
.
initialSelEnd
);
if
(
ProductionFlag
.
USES_DEVELOPMENT_ONLY_DIAGNOSTICS
)
{
if
(
ProductionFlag
.
USES_DEVELOPMENT_ONLY_DIAGNOSTICS
)
{
final
SharedPreferences
prefs
=
PreferenceManager
.
getDefaultSharedPreferences
(
this
);
final
SharedPreferences
prefs
=
PreferenceManager
.
getDefaultSharedPreferences
(
this
);
ResearchLogger
.
latinIME_onStartInputViewInternal
(
editorInfo
,
prefs
);
ResearchLogger
.
latinIME_onStartInputViewInternal
(
editorInfo
,
prefs
);
...
...
This diff is collapsed.
Click to expand it.
java/src/com/android/inputmethod/latin/RichInputConnection.java
+
3
−
3
View file @
296adf57
...
@@ -847,9 +847,9 @@ public final class RichInputConnection {
...
@@ -847,9 +847,9 @@ public final class RichInputConnection {
mExpectedSelStart
=
mExpectedSelEnd
=
Constants
.
NOT_A_CURSOR_POSITION
;
mExpectedSelStart
=
mExpectedSelEnd
=
Constants
.
NOT_A_CURSOR_POSITION
;
}
else
{
}
else
{
final
int
textLength
=
textBeforeCursor
.
length
();
final
int
textLength
=
textBeforeCursor
.
length
();
if
(
textLength
>
mExpectedSelStart
if
(
textLength
<
Constants
.
EDITOR_CONTENTS_CACHE_SIZE
||
(
textLength
<
Constants
.
EDITOR_CONTENTS_CACHE_SIZE
&&
(
textLength
>
mExpectedSelStart
&&
mExpectedSelStart
<
Constants
.
EDITOR_CONTENTS_CACHE_SIZE
))
{
||
mExpectedSelStart
<
Constants
.
EDITOR_CONTENTS_CACHE_SIZE
))
{
// It should not be possible to have only one of those variables be
// It should not be possible to have only one of those variables be
// NOT_A_CURSOR_POSITION, so if they are equal, either the selection is zero-sized
// NOT_A_CURSOR_POSITION, so if they are equal, either the selection is zero-sized
// (simple cursor, no selection) or there is no cursor/we don't know its pos
// (simple cursor, no selection) or there is no cursor/we don't know its pos
...
...
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