diff options
author | 2011-09-07 12:36:07 +0900 | |
---|---|---|
committer | 2011-09-07 12:36:07 +0900 | |
commit | 6d468c513f49a1d64e5da2c9fbe625710c75e20a (patch) | |
tree | beead70261058e9bbe804344de537bff872475c5 /java/src/com/android/inputmethod/deprecated/VoiceProxy.java | |
parent | ade62577d4fd776be5d2900cf3bd8583fcd8969f (diff) | |
download | latinime-6d468c513f49a1d64e5da2c9fbe625710c75e20a.tar.gz latinime-6d468c513f49a1d64e5da2c9fbe625710c75e20a.tar.xz latinime-6d468c513f49a1d64e5da2c9fbe625710c75e20a.zip |
Fix NPE in settings
Bug: 5246032
Change-Id: I452dab9bf863fb8cba142467f338088ee8b30283
Diffstat (limited to 'java/src/com/android/inputmethod/deprecated/VoiceProxy.java')
-rw-r--r-- | java/src/com/android/inputmethod/deprecated/VoiceProxy.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/java/src/com/android/inputmethod/deprecated/VoiceProxy.java b/java/src/com/android/inputmethod/deprecated/VoiceProxy.java index 9397483ce..a4dfa10d2 100644 --- a/java/src/com/android/inputmethod/deprecated/VoiceProxy.java +++ b/java/src/com/android/inputmethod/deprecated/VoiceProxy.java @@ -717,8 +717,8 @@ public class VoiceProxy implements VoiceInput.UiListener { mHasUsedVoiceInputUnsupportedLocale = sp.getBoolean(PREF_HAS_USED_VOICE_INPUT_UNSUPPORTED_LOCALE, false); - mLocaleSupportedForVoiceInput = SubtypeSwitcher.getInstance().isVoiceSupported( - SubtypeSwitcher.getInstance().getInputLocaleStr()); + mLocaleSupportedForVoiceInput = SubtypeSwitcher.isVoiceSupported( + mService, SubtypeSwitcher.getInstance().getInputLocaleStr()); final String voiceMode = sp.getString(PREF_VOICE_MODE, mService.getString(R.string.voice_mode_main)); |