aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/android/inputmethod/latin/LanguageSwitcher.java
diff options
context:
space:
mode:
authorMike LeBeau <mlebeau@android.com>2010-02-04 18:31:40 -0800
committerMike LeBeau <mlebeau@android.com>2010-02-04 19:43:44 -0800
commit2e3aa86cf389236c085ab4758239b01e80c3b2dc (patch)
tree3feb234b0314fdb402673248b914e771d75ab8bb /src/com/android/inputmethod/latin/LanguageSwitcher.java
parent30a7315878c377a46b8d16231bf34a1ef86c800a (diff)
downloadlatinime-2e3aa86cf389236c085ab4758239b01e80c3b2dc.tar.gz
latinime-2e3aa86cf389236c085ab4758239b01e80c3b2dc.tar.xz
latinime-2e3aa86cf389236c085ab4758239b01e80c3b2dc.zip
Add additional language information to FieldContext used for voice input.
This will allow us to choose the right voice input language for the user on the VoiceSearch side.
Diffstat (limited to 'src/com/android/inputmethod/latin/LanguageSwitcher.java')
-rw-r--r--src/com/android/inputmethod/latin/LanguageSwitcher.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/com/android/inputmethod/latin/LanguageSwitcher.java b/src/com/android/inputmethod/latin/LanguageSwitcher.java
index 97173533d..3fa882e44 100644
--- a/src/com/android/inputmethod/latin/LanguageSwitcher.java
+++ b/src/com/android/inputmethod/latin/LanguageSwitcher.java
@@ -108,6 +108,13 @@ public class LanguageSwitcher {
return mSelectedLanguageArray[mCurrentIndex];
}
+
+ /**
+ * Returns the list of enabled language codes.
+ */
+ public String[] getEnabledLanguages() {
+ return mSelectedLanguageArray;
+ }
/**
* Returns the currently selected input locale, or the display locale if no specific