aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/LatinIME.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2014-06-30 22:15:36 +0900
committerJean Chalard <jchalard@google.com>2014-07-01 18:21:17 +0900
commit28ebbd481ad38f41211d853bf5eb39b36842be36 (patch)
tree58a06c9502da6680fdb79a1df6c893055bf30ee3 /java/src/com/android/inputmethod/latin/LatinIME.java
parent08c01ea8a8765234a470bb4d4b887fe4786ee26f (diff)
downloadlatinime-28ebbd481ad38f41211d853bf5eb39b36842be36.tar.gz
latinime-28ebbd481ad38f41211d853bf5eb39b36842be36.tar.xz
latinime-28ebbd481ad38f41211d853bf5eb39b36842be36.zip
[HW5] Make the word composer package private.
Change-Id: I66ed277751272eb3ae2fd5e55e9f3e413970082f
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 9ecb11a57..1c5183d10 100644
--- a/java/src/com/android/inputmethod/latin/LatinIME.java
+++ b/java/src/com/android/inputmethod/latin/LatinIME.java
@@ -655,16 +655,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())) {