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
1c45f914
Commit
1c45f914
authored
10 years ago
by
Jatin Matani
Browse files
Options
Downloads
Patches
Plain Diff
Adds StatsUtil methods for LatinIME.on{Start,Create,Finish}inputView
Change-Id: I4e7dc008b98e398c38aafea5cb31156dde7f42ea
parent
97243cea
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
+13
-0
13 additions, 0 deletions
...e/src/com/android/inputmethod/latin/utils/StatsUtils.java
java/src/com/android/inputmethod/latin/LatinIME.java
+7
-0
7 additions, 0 deletions
java/src/com/android/inputmethod/latin/LatinIME.java
with
20 additions
and
0 deletions
java-overridable/src/com/android/inputmethod/latin/utils/StatsUtils.java
+
13
−
0
View file @
1c45f914
...
@@ -22,6 +22,10 @@ import com.android.inputmethod.latin.settings.SettingsValues;
...
@@ -22,6 +22,10 @@ import com.android.inputmethod.latin.settings.SettingsValues;
public
final
class
StatsUtils
{
public
final
class
StatsUtils
{
private
StatsUtils
()
{
// Intentional empty constructor.
}
public
static
void
onCreate
(
final
SettingsValues
settingsValues
,
public
static
void
onCreate
(
final
SettingsValues
settingsValues
,
RichInputMethodManager
richImm
)
{
RichInputMethodManager
richImm
)
{
}
}
...
@@ -50,4 +54,13 @@ public final class StatsUtils {
...
@@ -50,4 +54,13 @@ public final class StatsUtils {
public
static
void
onRevertSwapPunctuation
()
{
public
static
void
onRevertSwapPunctuation
()
{
}
}
public
static
void
onFinishInputView
()
{
}
public
static
void
onCreateInputView
()
{
}
public
static
void
onStartInputView
(
int
inputType
,
int
displayOrientation
,
boolean
restarting
)
{
}
}
}
This diff is collapsed.
Click to expand it.
java/src/com/android/inputmethod/latin/LatinIME.java
+
7
−
0
View file @
1c45f914
...
@@ -743,6 +743,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
...
@@ -743,6 +743,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
@Override
@Override
public
View
onCreateInputView
()
{
public
View
onCreateInputView
()
{
StatsUtils
.
onCreateInputView
();
return
mKeyboardSwitcher
.
onCreateInputView
(
mIsHardwareAcceleratedDrawingEnabled
);
return
mKeyboardSwitcher
.
onCreateInputView
(
mIsHardwareAcceleratedDrawingEnabled
);
}
}
...
@@ -775,6 +776,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
...
@@ -775,6 +776,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
@Override
@Override
public
void
onFinishInputView
(
final
boolean
finishingInput
)
{
public
void
onFinishInputView
(
final
boolean
finishingInput
)
{
StatsUtils
.
onFinishInputView
();
mHandler
.
onFinishInputView
(
finishingInput
);
mHandler
.
onFinishInputView
(
finishingInput
);
}
}
...
@@ -852,6 +854,11 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
...
@@ -852,6 +854,11 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
final
boolean
inputTypeChanged
=
!
currentSettingsValues
.
isSameInputType
(
editorInfo
);
final
boolean
inputTypeChanged
=
!
currentSettingsValues
.
isSameInputType
(
editorInfo
);
final
boolean
isDifferentTextField
=
!
restarting
||
inputTypeChanged
;
final
boolean
isDifferentTextField
=
!
restarting
||
inputTypeChanged
;
StatsUtils
.
onStartInputView
(
editorInfo
.
inputType
,
Settings
.
getInstance
().
getCurrent
().
mDisplayOrientation
,
!
isDifferentTextField
);
if
(
isDifferentTextField
)
{
if
(
isDifferentTextField
)
{
mSubtypeSwitcher
.
updateParametersOnStartInputView
();
mSubtypeSwitcher
.
updateParametersOnStartInputView
();
}
}
...
...
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