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
dc52e7c6
Commit
dc52e7c6
authored
13 years ago
by
Tadashi G. Takaoka
Browse files
Options
Downloads
Patches
Plain Diff
Remove current keyboard id variable
Change-Id: Iec19af98209e1ea8ecd176d3be04d628d4b38950
parent
34081186
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
java/src/com/android/inputmethod/keyboard/KeyboardSwitcher.java
+3
-5
3 additions, 5 deletions
...rc/com/android/inputmethod/keyboard/KeyboardSwitcher.java
with
3 additions
and
5 deletions
java/src/com/android/inputmethod/keyboard/KeyboardSwitcher.java
+
3
−
5
View file @
dc52e7c6
...
...
@@ -74,7 +74,6 @@ public class KeyboardSwitcher implements KeyboardState.SwitchActions,
private
KeyboardId
mSymbolsKeyboardId
;
private
KeyboardId
mSymbolsShiftedKeyboardId
;
private
KeyboardId
mCurrentId
;
private
final
HashMap
<
KeyboardId
,
SoftReference
<
LatinKeyboard
>>
mKeyboardCache
=
new
HashMap
<
KeyboardId
,
SoftReference
<
LatinKeyboard
>>();
...
...
@@ -152,7 +151,7 @@ public class KeyboardSwitcher implements KeyboardState.SwitchActions,
}
public
void
saveKeyboardState
()
{
if
(
mCurrentId
!=
null
)
{
if
(
isKeyboardAvailable
()
)
{
mState
.
onSaveKeyboardState
();
}
}
...
...
@@ -169,7 +168,6 @@ public class KeyboardSwitcher implements KeyboardState.SwitchActions,
final
Keyboard
oldKeyboard
=
mKeyboardView
.
getKeyboard
();
mKeyboardView
.
setKeyboard
(
keyboard
);
mCurrentInputView
.
setKeyboardGeometry
(
keyboard
.
mTopPadding
);
mCurrentId
=
keyboard
.
mId
;
updateShiftLockState
(
keyboard
);
mKeyboardView
.
setKeyPreviewPopupEnabled
(
SettingsValues
.
isKeyPreviewPopupEnabled
(
mPrefs
,
mResources
),
...
...
@@ -181,12 +179,12 @@ public class KeyboardSwitcher implements KeyboardState.SwitchActions,
}
private
void
updateShiftLockState
(
Keyboard
keyboard
)
{
if
(
mCurrent
Id
.
equals
(
mSymbolsShiftedKeyboardId
))
{
if
(
keyboard
.
m
Id
.
equals
(
mSymbolsShiftedKeyboardId
))
{
// Symbol keyboard may have an ALT key that has a caps lock style indicator (a.k.a.
// sticky shift key). To show or dismiss the indicator, we need to call setShiftLocked()
// that takes care of the current keyboard having such ALT key or not.
keyboard
.
setShiftLocked
(
keyboard
.
hasShiftLockKey
());
}
else
if
(
mCurrent
Id
.
equals
(
mSymbolsKeyboardId
))
{
}
else
if
(
keyboard
.
m
Id
.
equals
(
mSymbolsKeyboardId
))
{
// Symbol keyboard has an ALT key that has a caps lock style indicator. To disable the
// indicator, we need to call setShiftLocked(false).
keyboard
.
setShiftLocked
(
false
);
...
...
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