diff options
author | 2014-07-01 09:30:06 +0000 | |
---|---|---|
committer | 2014-07-01 09:30:06 +0000 | |
commit | 7f1e6b5979ecdea3bd3265c35b88a44077efda8c (patch) | |
tree | 224d8f36f4e92a1de4c73980cd36d84e1e65cb21 /java/src/com/android/inputmethod/latin/LatinIME.java | |
parent | 96eef7bb8377c6bafb464584b30ab7fe05d261af (diff) | |
parent | 0100a49bdd7658814b016fbefe63148e57d6096f (diff) | |
download | latinime-7f1e6b5979ecdea3bd3265c35b88a44077efda8c.tar.gz latinime-7f1e6b5979ecdea3bd3265c35b88a44077efda8c.tar.xz latinime-7f1e6b5979ecdea3bd3265c35b88a44077efda8c.zip |
am 0100a49b: Merge "[HW5] Make the word composer package private."
* commit '0100a49bdd7658814b016fbefe63148e57d6096f':
[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.java | 11 |
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())) { |