diff options
author | 2011-01-14 19:14:36 +0900 | |
---|---|---|
committer | 2011-01-14 19:14:36 +0900 | |
commit | 6014f1c92b8ea446b98a66429c232cd652f896ef (patch) | |
tree | aa6e256ad2f59c06c9f8651ff5f0f11208b7024d /java | |
parent | b676d479e5d8d29c2b3d371b7df5ec949237d136 (diff) | |
parent | e0df0fe957fee721365ab371d67206c1f90ecf24 (diff) | |
download | latinime-6014f1c92b8ea446b98a66429c232cd652f896ef.tar.gz latinime-6014f1c92b8ea446b98a66429c232cd652f896ef.tar.xz latinime-6014f1c92b8ea446b98a66429c232cd652f896ef.zip |
Merge remote branch 'goog/master' into merge
Conflicts:
java/src/com/android/inputmethod/latin/SubtypeSwitcher.java
Change-Id: I8a8c6d2c1f3bafb2f6e86a2381b88933b6ac3718
Diffstat (limited to 'java')
-rw-r--r-- | java/res/values/strings.xml | 8 | ||||
-rw-r--r-- | java/res/xml-xlarge/kbd_number.xml | 12 | ||||
-rw-r--r-- | java/res/xml-xlarge/kbd_phone.xml | 12 | ||||
-rw-r--r-- | java/res/xml-xlarge/kbd_phone_symbols.xml | 12 | ||||
-rw-r--r-- | java/res/xml-xlarge/kbd_qwerty_row4.xml | 10 | ||||
-rw-r--r-- | java/res/xml-xlarge/kbd_symbols.xml | 10 | ||||
-rw-r--r-- | java/res/xml-xlarge/kbd_symbols_shift.xml | 10 | ||||
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 5 | ||||
-rw-r--r-- | java/src/com/android/inputmethod/latin/Settings.java | 3 | ||||
-rw-r--r-- | java/src/com/android/inputmethod/latin/SubtypeSwitcher.java | 3 |
10 files changed, 58 insertions, 27 deletions
diff --git a/java/res/values/strings.xml b/java/res/values/strings.xml index cab6c62f1..b191e7fa0 100644 --- a/java/res/values/strings.xml +++ b/java/res/values/strings.xml @@ -186,7 +186,7 @@ <!-- On settings screen, voice input pop-up menu summary text to never show voice key [CHAR LIMIT=20] --> <string name="voice_input_modes_summary_off">Voice input is disabled</string> - <!-- Menu item for launching Input method picker --> + <!-- Title of the dialog for selecting input methods. [CHAR LIMIT=20] --> <string name="selectInputMethod">Select input method</string> <!-- Title for input language selection screen --> @@ -204,12 +204,12 @@ <string name="prefs_enable_log">Enable user feedback</string> <!-- Description for enabling to send user statistics to Google --> <string name="prefs_description_log">Help improve this input method editor by automatically sending usage statistics and crash reports to Google.</string> - <!-- Preferences item for enabling to correct suggestions by touching words you have typed --> + <!-- Preferences item for enabling to correct suggestions by touching words you have typed [CHAR LIMIT= 35] --> <string name="prefs_enable_recorrection">Touch to correct words</string> - <!-- The summary for the preferences item for enabling to correct suggestions by touching words you have typed --> + <!-- The summary for the preferences item for enabling to correct suggestions by touching words you have typed [CHAR LIMIT= 100] --> <string name="prefs_enable_recorrection_summary">Touch entered words to correct them, only when suggestions are visible</string> - <!-- Description for keyboard theme switcher --> + <!-- Title of the item to change the keyboard theme [CHAR LIMIT=20]--> <string name="keyboard_layout">Keyboard Theme</string> <!-- Description for Czech keyboard subtype [CHAR LIMIT=35] --> diff --git a/java/res/xml-xlarge/kbd_number.xml b/java/res/xml-xlarge/kbd_number.xml index 93bc1363a..c2cbb31c4 100644 --- a/java/res/xml-xlarge/kbd_number.xml +++ b/java/res/xml-xlarge/kbd_number.xml @@ -132,9 +132,15 @@ latin:keyLabel="0" /> <Key latin:keyLabel="#" /> - <Key - latin:keyStyle="micKeyStyle" - latin:keyWidth="8.042%p" /> + <switch> + <case + latin:voiceKeyEnabled="true" + > + <Key + latin:keyStyle="micKeyStyle" + latin:keyWidth="8.042%p" /> + </case> + </switch> <!-- There is an empty area bellow the "Enter" key and right of the "#" key. To ignore the touch event on the area, "#" is intentionally not marked as a right edge key. --> </Row> diff --git a/java/res/xml-xlarge/kbd_phone.xml b/java/res/xml-xlarge/kbd_phone.xml index 45c298362..c320ebbbc 100644 --- a/java/res/xml-xlarge/kbd_phone.xml +++ b/java/res/xml-xlarge/kbd_phone.xml @@ -140,9 +140,15 @@ latin:keyStyle="num0KeyStyle" /> <Key latin:keyStyle="numPoundKeyStyle" /> - <Key - latin:keyStyle="micKeyStyle" - latin:keyWidth="8.042%p" /> + <switch> + <case + latin:voiceKeyEnabled="true" + > + <Key + latin:keyStyle="micKeyStyle" + latin:keyWidth="8.042%p" /> + </case> + </switch> <!-- There is an empty area bellow the "Enter" key and right of the "#" key. To ignore the touch event on the area, "#" is intentionally not marked as a right edge key. --> </Row> diff --git a/java/res/xml-xlarge/kbd_phone_symbols.xml b/java/res/xml-xlarge/kbd_phone_symbols.xml index 891ceacbe..da15b5ad0 100644 --- a/java/res/xml-xlarge/kbd_phone_symbols.xml +++ b/java/res/xml-xlarge/kbd_phone_symbols.xml @@ -152,9 +152,15 @@ latin:keyStyle="num0KeyStyle" /> <Key latin:keyStyle="numPoundKeyStyle" /> - <Key - latin:keyStyle="micKeyStyle" - latin:keyWidth="8.042%p" /> + <switch> + <case + latin:voiceKeyEnabled="true" + > + <Key + latin:keyStyle="micKeyStyle" + latin:keyWidth="8.042%p" /> + </case> + </switch> <!-- There is an empty area bellow the "Enter" key and right of the "#" key. To ignore the touch event on the area, "#" is intentionally not marked as a right edge key. --> </Row> diff --git a/java/res/xml-xlarge/kbd_qwerty_row4.xml b/java/res/xml-xlarge/kbd_qwerty_row4.xml index e222a6bb0..98acfc162 100644 --- a/java/res/xml-xlarge/kbd_qwerty_row4.xml +++ b/java/res/xml-xlarge/kbd_qwerty_row4.xml @@ -114,7 +114,13 @@ latin:popupCharacters="_" /> </default> </switch> - <Key - latin:keyStyle="micKeyStyle" /> + <switch> + <case + latin:voiceKeyEnabled="true" + > + <Key + latin:keyStyle="micKeyStyle" /> + </case> + </switch> </Row> </merge> diff --git a/java/res/xml-xlarge/kbd_symbols.xml b/java/res/xml-xlarge/kbd_symbols.xml index 50b8e5307..d804f7909 100644 --- a/java/res/xml-xlarge/kbd_symbols.xml +++ b/java/res/xml-xlarge/kbd_symbols.xml @@ -162,7 +162,13 @@ latin:popupCharacters="“,”,«,»,˝" /> <Key latin:keyLabel="_" /> - <Key - latin:keyStyle="micKeyStyle" /> + <switch> + <case + latin:voiceKeyEnabled="true" + > + <Key + latin:keyStyle="micKeyStyle" /> + </case> + </switch> </Row> </Keyboard> diff --git a/java/res/xml-xlarge/kbd_symbols_shift.xml b/java/res/xml-xlarge/kbd_symbols_shift.xml index f586b1a28..db33aaaca 100644 --- a/java/res/xml-xlarge/kbd_symbols_shift.xml +++ b/java/res/xml-xlarge/kbd_symbols_shift.xml @@ -139,7 +139,13 @@ <Key latin:keyStyle="spaceKeyStyle" latin:keyWidth="37.454%p" /> - <Key - latin:keyStyle="micKeyStyle" /> + <switch> + <case + latin:voiceKeyEnabled="true" + > + <Key + latin:keyStyle="micKeyStyle" /> + </case> + </switch> </Row> </Keyboard> diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index 88261b60e..ad7e4708a 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -26,9 +26,6 @@ import com.android.inputmethod.keyboard.LatinKeyboardView; import com.android.inputmethod.latin.Utils.RingCharBuffer; import com.android.inputmethod.voice.VoiceIMEConnector; -import org.xmlpull.v1.XmlPullParser; -import org.xmlpull.v1.XmlPullParserException; - import android.app.AlertDialog; import android.content.BroadcastReceiver; import android.content.Context; @@ -38,7 +35,6 @@ import android.content.IntentFilter; import android.content.SharedPreferences; import android.content.res.Configuration; import android.content.res.Resources; -import android.content.res.XmlResourceParser; import android.inputmethodservice.InputMethodService; import android.media.AudioManager; import android.os.Debug; @@ -74,7 +70,6 @@ import android.widget.HorizontalScrollView; import android.widget.LinearLayout; import java.io.FileDescriptor; -import java.io.IOException; import java.io.PrintWriter; import java.util.ArrayList; import java.util.Arrays; diff --git a/java/src/com/android/inputmethod/latin/Settings.java b/java/src/com/android/inputmethod/latin/Settings.java index 4678f6747..d3fb23baf 100644 --- a/java/src/com/android/inputmethod/latin/Settings.java +++ b/java/src/com/android/inputmethod/latin/Settings.java @@ -183,7 +183,8 @@ public class Settings extends PreferenceActivity public boolean onPreferenceClick(Preference pref) { if (pref == mInputLanguageSelection) { final String action; - if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.HONEYCOMB) { + if (android.os.Build.VERSION.SDK_INT + >= /* android.os.Build.VERSION_CODES.HONEYCOMB */ 10) { action = "android.settings.INPUT_METHOD_AND_SUBTYPE_ENABLER"; } else { action = "com.android.inputmethod.latin.INPUT_LANGUAGE_SELECTION"; diff --git a/java/src/com/android/inputmethod/latin/SubtypeSwitcher.java b/java/src/com/android/inputmethod/latin/SubtypeSwitcher.java index 8d45d5b38..6a7098bc2 100644 --- a/java/src/com/android/inputmethod/latin/SubtypeSwitcher.java +++ b/java/src/com/android/inputmethod/latin/SubtypeSwitcher.java @@ -16,8 +16,6 @@ package com.android.inputmethod.latin; -import com.android.inputmethod.compat.InputMethodSubtype; -import com.android.inputmethod.keyboard.Keyboard; import com.android.inputmethod.keyboard.KeyboardSwitcher; import com.android.inputmethod.voice.SettingsUtil; import com.android.inputmethod.voice.VoiceIMEConnector; @@ -438,6 +436,7 @@ public class SubtypeSwitcher { } private void triggerVoiceIME() { + if (!mService.isInputViewShown()) return; VoiceIMEConnector.getInstance().startListening(false, KeyboardSwitcher.getInstance().getInputView().getWindowToken(), false); } |