am ec4b6e7b: [IL25] Inline handleClose

* commit 'ec4b6e7bb37d2f1794673dc896c14d6b554c6a0a':
  [IL25] Inline handleClose
main
Jean Chalard 2013-12-20 01:53:26 -08:00 committed by Android Git Automerger
commit 42e932beba
1 changed files with 6 additions and 12 deletions

View File

@ -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);
}