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
85ce863d
Commit
85ce863d
authored
10 years ago
by
Yohei Yukawa
Committed by
Android Git Automerger
10 years ago
Browse files
Options
Downloads
Plain Diff
am
4a2dbd87
: am
d9a8e1cc
: Enable CursorAnchorInfo callback when necessary
* commit '
4a2dbd87
': Enable CursorAnchorInfo callback when necessary
parents
bec6c6e3
4a2dbd87
No related branches found
No related tags found
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
+6
-3
6 additions, 3 deletions
java/src/com/android/inputmethod/latin/LatinIME.java
java/src/com/android/inputmethod/latin/define/ProductionFlags.java
+1
-1
1 addition, 1 deletion
...com/android/inputmethod/latin/define/ProductionFlags.java
with
7 additions
and
4 deletions
java/src/com/android/inputmethod/latin/LatinIME.java
+
6
−
3
View file @
85ce863d
...
@@ -424,9 +424,12 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
...
@@ -424,9 +424,12 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
latinIme
.
getCurrentInputConnection
(),
true
/* enableMonitor */
);
latinIme
.
getCurrentInputConnection
(),
true
/* enableMonitor */
);
}
}
if
(
ProductionFlags
.
ENABLE_CURSOR_ANCHOR_INFO_CALLBACK
)
{
if
(
ProductionFlags
.
ENABLE_CURSOR_ANCHOR_INFO_CALLBACK
)
{
InputConnectionCompatUtils
.
requestCursorAnchorInfo
(
// AcceptTypedWord feature relies on CursorAnchorInfo.
latinIme
.
getCurrentInputConnection
(),
true
/* enableMonitor */
,
if
(
latinIme
.
mSettings
.
getCurrent
().
mShouldShowUiToAcceptTypedWord
)
{
true
/* requestImmediateCallback */
);
InputConnectionCompatUtils
.
requestCursorAnchorInfo
(
latinIme
.
getCurrentInputConnection
(),
true
/* enableMonitor */
,
true
/* requestImmediateCallback */
);
}
}
}
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
java/src/com/android/inputmethod/latin/define/ProductionFlags.java
+
1
−
1
View file @
85ce863d
...
@@ -29,7 +29,7 @@ public final class ProductionFlags {
...
@@ -29,7 +29,7 @@ public final class ProductionFlags {
* and prior. In general, this callback provides more detailed positional information,
* and prior. In general, this callback provides more detailed positional information,
* even though an explicit support is required by the editor.
* even though an explicit support is required by the editor.
*/
*/
public
static
final
boolean
ENABLE_CURSOR_ANCHOR_INFO_CALLBACK
=
fals
e
;
public
static
final
boolean
ENABLE_CURSOR_ANCHOR_INFO_CALLBACK
=
tru
e
;
/**
/**
* When true, enable {@link InputMethodService#onUpdateCursor} callback via
* When true, enable {@link InputMethodService#onUpdateCursor} callback via
...
...
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