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
c98a943e
Commit
c98a943e
authored
14 years ago
by
satok
Browse files
Options
Downloads
Patches
Plain Diff
Duplicate enabled languages when there is only one enabled language
Bug: 3415274 Change-Id: Ibc17733be888044cfa5d1787b8489e642d70d70f
parent
f5cf266a
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/SubtypeSwitcher.java
+8
-1
8 additions, 1 deletion
java/src/com/android/inputmethod/latin/SubtypeSwitcher.java
java/src/com/android/inputmethod/voice/VoiceIMEConnector.java
+2
-2
2 additions, 2 deletions
.../src/com/android/inputmethod/voice/VoiceIMEConnector.java
with
10 additions
and
3 deletions
java/src/com/android/inputmethod/latin/SubtypeSwitcher.java
+
8
−
1
View file @
c98a943e
...
@@ -426,8 +426,15 @@ public class SubtypeSwitcher {
...
@@ -426,8 +426,15 @@ public class SubtypeSwitcher {
if
(
mConfigUseSpacebarLanguageSwitcher
)
{
if
(
mConfigUseSpacebarLanguageSwitcher
)
{
return
mLanguageSwitcher
.
getEnabledLanguages
();
return
mLanguageSwitcher
.
getEnabledLanguages
();
}
else
{
}
else
{
int
enabledLanguageCount
=
mEnabledLanguagesOfCurrentInputMethod
.
size
();
// Workaround for explicitly specifying the voice language
if
(
enabledLanguageCount
==
1
)
{
mEnabledLanguagesOfCurrentInputMethod
.
add
(
mEnabledLanguagesOfCurrentInputMethod
.
get
(
0
));
++
enabledLanguageCount
;
}
return
mEnabledLanguagesOfCurrentInputMethod
.
toArray
(
return
mEnabledLanguagesOfCurrentInputMethod
.
toArray
(
new
String
[
mE
nabledLanguage
sOfCurrentInputMethod
.
size
()
]);
new
String
[
e
nabledLanguage
Count
]);
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
java/src/com/android/inputmethod/voice/VoiceIMEConnector.java
+
2
−
2
View file @
c98a943e
...
@@ -81,7 +81,7 @@ public class VoiceIMEConnector implements VoiceInput.UiListener {
...
@@ -81,7 +81,7 @@ public class VoiceIMEConnector implements VoiceInput.UiListener {
private
static
final
int
RECOGNITIONVIEW_HEIGHT_THRESHOLD_RATIO
=
6
;
private
static
final
int
RECOGNITIONVIEW_HEIGHT_THRESHOLD_RATIO
=
6
;
private
static
final
String
TAG
=
VoiceIMEConnector
.
class
.
getSimpleName
();
private
static
final
String
TAG
=
VoiceIMEConnector
.
class
.
getSimpleName
();
private
static
boolean
DEBUG
=
LatinImeLogger
.
sDBG
;
private
static
final
boolean
DEBUG
=
LatinImeLogger
.
sDBG
;
private
boolean
mAfterVoiceInput
;
private
boolean
mAfterVoiceInput
;
private
boolean
mHasUsedVoiceInput
;
private
boolean
mHasUsedVoiceInput
;
...
@@ -715,7 +715,7 @@ public class VoiceIMEConnector implements VoiceInput.UiListener {
...
@@ -715,7 +715,7 @@ public class VoiceIMEConnector implements VoiceInput.UiListener {
mHandler
.
updateVoiceResults
();
mHandler
.
updateVoiceResults
();
}
}
p
ublic
FieldContext
makeFieldContext
()
{
p
rivate
FieldContext
makeFieldContext
()
{
SubtypeSwitcher
switcher
=
SubtypeSwitcher
.
getInstance
();
SubtypeSwitcher
switcher
=
SubtypeSwitcher
.
getInstance
();
return
new
FieldContext
(
mService
.
getCurrentInputConnection
(),
return
new
FieldContext
(
mService
.
getCurrentInputConnection
(),
mService
.
getCurrentInputEditorInfo
(),
switcher
.
getInputLocaleStr
(),
mService
.
getCurrentInputEditorInfo
(),
switcher
.
getInputLocaleStr
(),
...
...
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