mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
[IL25] Inline handleClose
Only ever used here. Bug: 8636060 Change-Id: Ia98c8bbe1c63ad4d057efe1cee87829b06124479
This commit is contained in:
parent
aa161eb371
commit
ec4b6e7bb3
@ -1609,17 +1609,6 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
|
|||||||
mInputUpdater.onCancelBatchInput();
|
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
|
// TODO[IL]: Move this to InputLogic and make it private
|
||||||
// Outside LatinIME, only used by the test suite.
|
// Outside LatinIME, only used by the test suite.
|
||||||
@UsedForTesting
|
@UsedForTesting
|
||||||
@ -2170,7 +2159,12 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
|
|||||||
};
|
};
|
||||||
|
|
||||||
private void launchSettings() {
|
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);
|
launchSubActivity(SettingsActivity.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user