aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin
diff options
context:
space:
mode:
Diffstat (limited to 'java/src/com/android/inputmethod/latin')
-rw-r--r--java/src/com/android/inputmethod/latin/LatinIME.java4
-rw-r--r--java/src/com/android/inputmethod/latin/WhitelistDictionary.java6
2 files changed, 5 insertions, 5 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java
index 28d920557..c53d13e26 100644
--- a/java/src/com/android/inputmethod/latin/LatinIME.java
+++ b/java/src/com/android/inputmethod/latin/LatinIME.java
@@ -1264,7 +1264,11 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
break;
case Keyboard.CODE_CAPSLOCK:
switcher.toggleCapsLock();
+ //$FALL-THROUGH$
+ case Keyboard.CODE_HAPTIC_AND_AUDIO_FEEDBACK_ONLY:
+ // Dummy code for haptic and audio feedbacks.
vibrate();
+ playKeyClick(primaryCode);
break;
case Keyboard.CODE_SHORTCUT:
mSubtypeSwitcher.switchToShortcutIME();
diff --git a/java/src/com/android/inputmethod/latin/WhitelistDictionary.java b/java/src/com/android/inputmethod/latin/WhitelistDictionary.java
index 8f349ce6f..a90ef290b 100644
--- a/java/src/com/android/inputmethod/latin/WhitelistDictionary.java
+++ b/java/src/com/android/inputmethod/latin/WhitelistDictionary.java
@@ -22,8 +22,6 @@ import android.text.TextUtils;
import android.util.Log;
import android.util.Pair;
-import com.android.inputmethod.keyboard.ProximityInfo;
-
import java.util.HashMap;
import java.util.Locale;
@@ -40,9 +38,7 @@ public class WhitelistDictionary extends ExpandableDictionary {
super(context, Suggest.DIC_WHITELIST);
final Resources res = context.getResources();
final Locale previousLocale = LocaleUtils.setSystemLocale(res, locale);
- if (context != null) {
- initWordlist(context.getResources().getStringArray(R.array.wordlist_whitelist));
- }
+ initWordlist(res.getStringArray(R.array.wordlist_whitelist));
LocaleUtils.setSystemLocale(res, previousLocale);
}