aboutsummaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2013-12-20 16:35:35 +0900
committerJean Chalard <jchalard@google.com>2013-12-20 18:44:13 +0900
commitec4b6e7bb37d2f1794673dc896c14d6b554c6a0a (patch)
treef05329e74d5d07fd796327d5af86853ea37536f0 /java
parentaa161eb371d8042ef4c1f9207648b3aeacb65e4e (diff)
downloadlatinime-ec4b6e7bb37d2f1794673dc896c14d6b554c6a0a.tar.gz
latinime-ec4b6e7bb37d2f1794673dc896c14d6b554c6a0a.tar.xz
latinime-ec4b6e7bb37d2f1794673dc896c14d6b554c6a0a.zip
[IL25] Inline handleClose
Only ever used here. Bug: 8636060 Change-Id: Ia98c8bbe1c63ad4d057efe1cee87829b06124479
Diffstat (limited to 'java')
-rw-r--r--java/src/com/android/inputmethod/latin/LatinIME.java18
1 files changed, 6 insertions, 12 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java
index f97510b46..c66fca58c 100644
--- a/java/src/com/android/inputmethod/latin/LatinIME.java
+++ b/java/src/com/android/inputmethod/latin/LatinIME.java
@@ -1609,17 +1609,6 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
mInputUpdater.onCancelBatchInput();
}
- // TODO[IL]: Rename this to avoid using handle*
- private void handleClose() {
- // TODO: Verify that words are logged properly when IME is closed.
- mInputLogic.commitTyped(mSettings.getCurrent(), LastComposedWord.NOT_A_SEPARATOR);
- requestHideSelf(0);
- final MainKeyboardView mainKeyboardView = mKeyboardSwitcher.getMainKeyboardView();
- if (mainKeyboardView != null) {
- mainKeyboardView.closing();
- }
- }
-
// TODO[IL]: Move this to InputLogic and make it private
// Outside LatinIME, only used by the test suite.
@UsedForTesting
@@ -2170,7 +2159,12 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
};
private void launchSettings() {
- handleClose();
+ mInputLogic.commitTyped(mSettings.getCurrent(), LastComposedWord.NOT_A_SEPARATOR);
+ requestHideSelf(0);
+ final MainKeyboardView mainKeyboardView = mKeyboardSwitcher.getMainKeyboardView();
+ if (mainKeyboardView != null) {
+ mainKeyboardView.closing();
+ }
launchSubActivity(SettingsActivity.class);
}