diff options
author | 2010-12-10 15:24:28 +0900 | |
---|---|---|
committer | 2010-12-10 18:24:00 +0900 | |
commit | e26ef1bccddc942fdaeada3409c8e8ff18a35008 (patch) | |
tree | f697a67c0c82dc4e097e46fbf983ba77b98b44fd /java/src/com/android/inputmethod/voice/VoiceInput.java | |
parent | 20cdb37bd062ae6cb6d42ad6229a19733476cd55 (diff) | |
download | latinime-e26ef1bccddc942fdaeada3409c8e8ff18a35008.tar.gz latinime-e26ef1bccddc942fdaeada3409c8e8ff18a35008.tar.xz latinime-e26ef1bccddc942fdaeada3409c8e8ff18a35008.zip |
Remove Tutorial class and unused debug feature
This change also cleanups compiler warnings.
Bug: 2897373
Change-Id: If972cf45c1eb40436adbddbf71969e5409f4c9c5
Diffstat (limited to 'java/src/com/android/inputmethod/voice/VoiceInput.java')
-rw-r--r-- | java/src/com/android/inputmethod/voice/VoiceInput.java | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/java/src/com/android/inputmethod/voice/VoiceInput.java b/java/src/com/android/inputmethod/voice/VoiceInput.java index d51d8694d..f77b4dd0d 100644 --- a/java/src/com/android/inputmethod/voice/VoiceInput.java +++ b/java/src/com/android/inputmethod/voice/VoiceInput.java @@ -16,7 +16,7 @@ package com.android.inputmethod.voice; -import com.android.inputmethod.latin.EditingUtil; +import com.android.inputmethod.latin.EditingUtils; import com.android.inputmethod.latin.R; import android.content.ContentResolver; @@ -241,7 +241,7 @@ public class VoiceInput implements OnClickListener { } public void incrementTextModificationInsertPunctuationCount(int count){ - mAfterVoiceInputInsertPunctuationCount += 1; + mAfterVoiceInputInsertPunctuationCount += count; if (mAfterVoiceInputSelectionSpan > 0) { // If text was highlighted before inserting the char, count this as // a delete. @@ -429,8 +429,7 @@ public class VoiceInput implements OnClickListener { public void logTextModifiedByChooseSuggestion(String suggestion, int index, String wordSeparators, InputConnection ic) { - EditingUtil.Range range = new EditingUtil.Range(); - String wordToBeReplaced = EditingUtil.getWordAtCursor(ic, wordSeparators, range); + String wordToBeReplaced = EditingUtils.getWordAtCursor(ic, wordSeparators); // If we enable phrase-based alternatives, only send up the first word // in suggestion and wordToBeReplaced. mLogger.textModifiedByChooseSuggestion(suggestion.length(), wordToBeReplaced.length(), @@ -578,7 +577,9 @@ public class VoiceInput implements OnClickListener { public void onBufferReceived(byte[] buf) { try { mWaveBuffer.write(buf); - } catch (IOException e) {} + } catch (IOException e) { + // ignore. + } } @Override |