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
40833d2d
Commit
40833d2d
authored
10 years ago
by
Chieu Nguyen
Browse files
Options
Downloads
Patches
Plain Diff
Add StatsUtils method for handling subtype change.
Change-Id: I0f334ab5e6f5aa41ad780641276dc3d2aa232f48
parent
95711bfc
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-overridable/src/com/android/inputmethod/latin/utils/StatsUtils.java
+6
-0
6 additions, 0 deletions
...e/src/com/android/inputmethod/latin/utils/StatsUtils.java
java/src/com/android/inputmethod/latin/LatinIME.java
+2
-0
2 additions, 0 deletions
java/src/com/android/inputmethod/latin/LatinIME.java
with
8 additions
and
0 deletions
java-overridable/src/com/android/inputmethod/latin/utils/StatsUtils.java
+
6
−
0
View file @
40833d2d
...
...
@@ -16,6 +16,8 @@
package
com.android.inputmethod.latin.utils
;
import
android.view.inputmethod.InputMethodSubtype
;
import
com.android.inputmethod.latin.RichInputMethodManager
;
import
com.android.inputmethod.latin.SuggestedWords
;
import
com.android.inputmethod.latin.settings.SettingsValues
;
...
...
@@ -86,4 +88,8 @@ public final class StatsUtils {
public
static
void
onInvalidWordIdentification
(
final
String
invalidWord
)
{
}
public
static
void
onSubtypeChanged
(
final
InputMethodSubtype
oldSubtype
,
final
InputMethodSubtype
newSubtype
)
{
}
}
This diff is collapsed.
Click to expand it.
java/src/com/android/inputmethod/latin/LatinIME.java
+
2
−
0
View file @
40833d2d
...
...
@@ -793,6 +793,8 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
public
void
onCurrentInputMethodSubtypeChanged
(
final
InputMethodSubtype
subtype
)
{
// Note that the calling sequence of onCreate() and onCurrentInputMethodSubtypeChanged()
// is not guaranteed. It may even be called at the same time on a different thread.
InputMethodSubtype
oldSubtype
=
mRichImm
.
getCurrentSubtype
().
getRawSubtype
();
StatsUtils
.
onSubtypeChanged
(
oldSubtype
,
subtype
);
mRichImm
.
onSubtypeChanged
(
subtype
);
mInputLogic
.
onSubtypeChanged
(
SubtypeLocaleUtils
.
getCombiningRulesExtraValue
(
subtype
),
mSettings
.
getCurrent
());
...
...
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