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
c412a41a
Commit
c412a41a
authored
11 years ago
by
Tadashi G. Takaoka
Committed by
Android (Google) Code Review
11 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Remove redundant check to detect forceAscii"
parents
bfd58885
61dbda00
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/keyboard/KeyboardSwitcher.java
+1
-1
1 addition, 1 deletion
...rc/com/android/inputmethod/keyboard/KeyboardSwitcher.java
java/src/com/android/inputmethod/latin/SubtypeSwitcher.java
+6
-9
6 additions, 9 deletions
java/src/com/android/inputmethod/latin/SubtypeSwitcher.java
with
7 additions
and
10 deletions
java/src/com/android/inputmethod/keyboard/KeyboardSwitcher.java
+
1
−
1
View file @
c412a41a
...
...
@@ -205,7 +205,7 @@ public final class KeyboardSwitcher implements KeyboardState.SwitchActions {
final
boolean
subtypeChanged
=
(
oldKeyboard
==
null
)
||
!
keyboard
.
mId
.
mLocale
.
equals
(
oldKeyboard
.
mId
.
mLocale
);
final
boolean
needsToDisplayLanguage
=
mSubtypeSwitcher
.
needsToDisplayLanguage
(
keyboard
.
mId
.
m
Local
e
);
keyboard
.
mId
.
m
Subtyp
e
);
keyboardView
.
startDisplayLanguageOnSpacebar
(
subtypeChanged
,
needsToDisplayLanguage
,
RichInputMethodManager
.
getInstance
().
hasMultipleEnabledIMEsOrSubtypes
(
true
));
}
...
...
This diff is collapsed.
Click to expand it.
java/src/com/android/inputmethod/latin/SubtypeSwitcher.java
+
6
−
9
View file @
c412a41a
...
...
@@ -93,7 +93,10 @@ public final class SubtypeSwitcher {
private
int
mEnabledSubtypeCount
;
private
boolean
mIsSystemLanguageSameAsInputLanguage
;
public
boolean
getValue
()
{
public
boolean
needsToDisplayLanguage
(
final
InputMethodSubtype
subtype
)
{
if
(
SubtypeLocaleUtils
.
isNoLanguage
(
subtype
))
{
return
true
;
}
return
mEnabledSubtypeCount
>=
2
||
!
mIsSystemLanguageSameAsInputLanguage
;
}
...
...
@@ -265,14 +268,8 @@ public final class SubtypeSwitcher {
// Subtype Switching functions //
//////////////////////////////////
public
boolean
needsToDisplayLanguage
(
final
Locale
keyboardLocale
)
{
if
(
keyboardLocale
.
toString
().
equals
(
SubtypeLocaleUtils
.
NO_LANGUAGE
))
{
return
true
;
}
if
(!
keyboardLocale
.
equals
(
getCurrentSubtypeLocale
()))
{
return
false
;
}
return
mNeedsToDisplayLanguage
.
getValue
();
public
boolean
needsToDisplayLanguage
(
final
InputMethodSubtype
subtype
)
{
return
mNeedsToDisplayLanguage
.
needsToDisplayLanguage
(
subtype
);
}
public
boolean
isSystemLocaleSameAsLocaleOfAllEnabledSubtypesOfEnabledImes
()
{
...
...
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