aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/LatinIME.java
diff options
context:
space:
mode:
authorsatok <satok@google.com>2011-03-17 20:36:42 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-03-17 20:36:42 -0700
commitda4236fb510f0aaeb5f757d4e9e82d5bebaec4ff (patch)
treead155bad698a3b985cf10cbaabe6f0b2608f2d06 /java/src/com/android/inputmethod/latin/LatinIME.java
parent76c2ff21540879a6374fb692dfeb22120e2e0ca3 (diff)
parent2cff4d7e4abdb192151f9b4027fc93fe28a8bdaa (diff)
downloadlatinime-da4236fb510f0aaeb5f757d4e9e82d5bebaec4ff.tar.gz
latinime-da4236fb510f0aaeb5f757d4e9e82d5bebaec4ff.tar.xz
latinime-da4236fb510f0aaeb5f757d4e9e82d5bebaec4ff.zip
Merge "Added CompatUtils for starting a language selector"
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinIME.java')
-rw-r--r--java/src/com/android/inputmethod/latin/LatinIME.java8
1 files changed, 3 insertions, 5 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java
index 3d1b4e031..cd99de892 100644
--- a/java/src/com/android/inputmethod/latin/LatinIME.java
+++ b/java/src/com/android/inputmethod/latin/LatinIME.java
@@ -16,6 +16,7 @@
package com.android.inputmethod.latin;
+import com.android.inputmethod.compat.CompatUtils;
import com.android.inputmethod.deprecated.VoiceConnector;
import com.android.inputmethod.keyboard.Keyboard;
import com.android.inputmethod.keyboard.KeyboardActionListener;
@@ -2215,13 +2216,10 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
di.dismiss();
switch (position) {
case 0:
- Intent intent = new Intent(
- android.provider.Settings.ACTION_INPUT_METHOD_SUBTYPE_SETTINGS);
- intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK
+ Intent intent = CompatUtils.getInputLanguageSelectionIntent(
+ mInputMethodId, Intent.FLAG_ACTIVITY_NEW_TASK
| Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED
| Intent.FLAG_ACTIVITY_CLEAR_TOP);
- intent.putExtra(android.provider.Settings.EXTRA_INPUT_METHOD_ID,
- mInputMethodId);
startActivity(intent);
break;
case 1: