aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin
diff options
context:
space:
mode:
authorsatok <satok@google.com>2011-01-23 05:46:30 +0900
committersatok <satok@google.com>2011-01-24 15:08:07 +0900
commit910b73127fa207dd26ec8124000262523b0aac0c (patch)
tree904a35c4161dba2ba5b525e88beebb7ea794edc6 /java/src/com/android/inputmethod/latin
parent251cb11f0d1c151672068bed2236a3df32ef774f (diff)
downloadlatinime-910b73127fa207dd26ec8124000262523b0aac0c.tar.gz
latinime-910b73127fa207dd26ec8124000262523b0aac0c.tar.xz
latinime-910b73127fa207dd26ec8124000262523b0aac0c.zip
Add log for voice IME
Change-Id: I7d0a458b3cf41fc9dc679f654347e8870c75185d
Diffstat (limited to 'java/src/com/android/inputmethod/latin')
-rw-r--r--java/src/com/android/inputmethod/latin/LatinIME.java5
-rw-r--r--java/src/com/android/inputmethod/latin/SubtypeSwitcher.java14
2 files changed, 17 insertions, 2 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java
index 847038fee..bbe3f78f2 100644
--- a/java/src/com/android/inputmethod/latin/LatinIME.java
+++ b/java/src/com/android/inputmethod/latin/LatinIME.java
@@ -84,8 +84,8 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
SharedPreferences.OnSharedPreferenceChangeListener {
private static final String TAG = "LatinIME";
private static final boolean PERF_DEBUG = false;
- private static final boolean DEBUG = LatinImeLogger.sDBG;
private static final boolean TRACE = false;
+ private static boolean DEBUG = LatinImeLogger.sDBG;
private static final int DELAY_UPDATE_SUGGESTIONS = 180;
private static final int DELAY_UPDATE_OLD_SUGGESTIONS = 300;
@@ -514,6 +514,9 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
final KeyboardSwitcher switcher = mKeyboardSwitcher;
LatinKeyboardView inputView = switcher.getInputView();
+ if(DEBUG) {
+ Log.d(TAG, "onStartInputView: " + inputView);
+ }
// In landscape mode, this method gets called without the input view being created.
if (inputView == null) {
return;
diff --git a/java/src/com/android/inputmethod/latin/SubtypeSwitcher.java b/java/src/com/android/inputmethod/latin/SubtypeSwitcher.java
index da46d26bf..ffce66e9b 100644
--- a/java/src/com/android/inputmethod/latin/SubtypeSwitcher.java
+++ b/java/src/com/android/inputmethod/latin/SubtypeSwitcher.java
@@ -41,7 +41,7 @@ import java.util.Locale;
import java.util.Map;
public class SubtypeSwitcher {
- private static final boolean DBG = LatinImeLogger.sDBG;
+ private static boolean DBG = LatinImeLogger.sDBG;
private static final String TAG = "SubtypeSwitcher";
private static final char LOCALE_SEPARATER = '_';
@@ -163,6 +163,12 @@ public class SubtypeSwitcher {
}
private void updateShortcutIME() {
+ if (DBG) {
+ Log.d(TAG, "Update shortcut IME from : "
+ + (mShortcutInfo == null ? "<null>" : mShortcutInfo.getId()) + ", "
+ + (mShortcutSubtype == null ? "<null>" : (mShortcutSubtype.getLocale()
+ + ", " + mShortcutSubtype.getMode())));
+ }
// TODO: Update an icon for shortcut IME
Map<InputMethodInfo, List<InputMethodSubtype>> shortcuts =
mImm.getShortcutInputMethodsAndSubtypes();
@@ -176,6 +182,12 @@ public class SubtypeSwitcher {
mShortcutSubtype = subtypes.size() > 0 ? subtypes.get(0) : null;
break;
}
+ if (DBG) {
+ Log.d(TAG, "Update shortcut IME to : "
+ + (mShortcutInfo == null ? "<null>" : mShortcutInfo.getId()) + ", "
+ + (mShortcutSubtype == null ? "<null>" : (mShortcutSubtype.getLocale()
+ + ", " + mShortcutSubtype.getMode())));
+ }
}
// Update the current subtype. LatinIME.onCurrentInputMethodSubtypeChanged calls this function.