aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/KeyboardSwitcher.java
diff options
context:
space:
mode:
authorKen Wakasa <kwakasa@google.com>2010-10-26 19:04:48 +0900
committerKen Wakasa <kwakasa@google.com>2010-10-26 20:00:21 +0900
commit276845c7a9ea90fd34289d060873c8e3a7ed342c (patch)
tree7c1911435c5e9df02e718511c9b7a8af0a2a92c2 /java/src/com/android/inputmethod/latin/KeyboardSwitcher.java
parenteec7bb9386795a740ebbfce39792694373c1c869 (diff)
downloadlatinime-276845c7a9ea90fd34289d060873c8e3a7ed342c.tar.gz
latinime-276845c7a9ea90fd34289d060873c8e3a7ed342c.tar.xz
latinime-276845c7a9ea90fd34289d060873c8e3a7ed342c.zip
Follow-up change to revise Caps Lock sequence.
bug: 3122877 Change-Id: I44c539d7c041443f3ad027de4b75a67adf6b2c87
Diffstat (limited to 'java/src/com/android/inputmethod/latin/KeyboardSwitcher.java')
-rw-r--r--java/src/com/android/inputmethod/latin/KeyboardSwitcher.java15
1 files changed, 7 insertions, 8 deletions
diff --git a/java/src/com/android/inputmethod/latin/KeyboardSwitcher.java b/java/src/com/android/inputmethod/latin/KeyboardSwitcher.java
index a5a262ec7..dcbdba13d 100644
--- a/java/src/com/android/inputmethod/latin/KeyboardSwitcher.java
+++ b/java/src/com/android/inputmethod/latin/KeyboardSwitcher.java
@@ -391,18 +391,17 @@ public class KeyboardSwitcher implements SharedPreferences.OnSharedPreferenceCha
}
public void setShifted(boolean shifted) {
- if (mInputView != null) {
- LatinKeyboard latinKeyboard = mInputView.getLatinKeyboard();
- if (latinKeyboard != null && latinKeyboard.setShifted(shifted)) {
- mInputView.invalidateAllKeys();
- }
+ if (mInputView == null) return;
+ LatinKeyboard latinKeyboard = mInputView.getLatinKeyboard();
+ if (latinKeyboard == null) return;
+ if (latinKeyboard.setShifted(shifted)) {
+ mInputView.invalidateAllKeys();
}
}
public void setShiftLocked(boolean shiftLocked) {
- if (mInputView != null) {
- mInputView.setShiftLocked(shiftLocked);
- }
+ if (mInputView == null) return;
+ mInputView.setShiftLocked(shiftLocked);
}
public void toggleShift() {