aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/LatinIME.java
diff options
context:
space:
mode:
authorKen Wakasa <kwakasa@google.com>2014-07-01 09:26:56 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-06-26 23:14:30 +0000
commit0100a49bdd7658814b016fbefe63148e57d6096f (patch)
tree586a6d2ae8a92d1e2776d873b12fef5ba171ea9a /java/src/com/android/inputmethod/latin/LatinIME.java
parentb10ca308afa40bdc9d003494e30d21df03a0063c (diff)
parent28ebbd481ad38f41211d853bf5eb39b36842be36 (diff)
downloadlatinime-0100a49bdd7658814b016fbefe63148e57d6096f.tar.gz
latinime-0100a49bdd7658814b016fbefe63148e57d6096f.tar.xz
latinime-0100a49bdd7658814b016fbefe63148e57d6096f.zip
Merge "[HW5] Make the word composer package private."
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinIME.java')
-rw-r--r--java/src/com/android/inputmethod/latin/LatinIME.java11
1 files changed, 1 insertions, 10 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java
index 1c3048ae6..d2c4ca712 100644
--- a/java/src/com/android/inputmethod/latin/LatinIME.java
+++ b/java/src/com/android/inputmethod/latin/LatinIME.java
@@ -686,16 +686,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
final SettingsValues settingsValues = mSettings.getCurrent();
if (settingsValues.mDisplayOrientation != conf.orientation) {
mHandler.startOrientationChanging();
- // If !isComposingWord, #commitTyped() is a no-op, but still, it's better to avoid
- // the useless IPC of {begin,end}BatchEdit.
- if (mInputLogic.mWordComposer.isComposingWord()) {
- mInputLogic.mConnection.beginBatchEdit();
- // If we had a composition in progress, we need to commit the word so that the
- // suggestionsSpan will be added. This will allow resuming on the same suggestions
- // after rotation is finished.
- mInputLogic.commitTyped(mSettings.getCurrent(), LastComposedWord.NOT_A_SEPARATOR);
- mInputLogic.mConnection.endBatchEdit();
- }
+ mInputLogic.onOrientationChange(mSettings.getCurrent());
}
// TODO: Remove this test.
if (!conf.locale.equals(mPersonalizationDictionaryUpdater.getLocale())) {