[IL25] Inline handleClose
Only ever used here. Bug: 8636060 Change-Id: Ia98c8bbe1c63ad4d057efe1cee87829b06124479
This commit is contained in:
parent
aa161eb371
commit
ec4b6e7bb3
1 changed files with 6 additions and 12 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue