fix switch language behaviour

fixes #48
This commit is contained in:
dslul 2020-10-02 11:50:35 +02:00
parent f93db97c3a
commit 2bfc526bb4

View file

@ -1321,10 +1321,13 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
} }
public void displaySettingsDialog() { public void displaySettingsDialog() {
launchSettings();
/* old dialog
if (isShowingOptionDialog()) { if (isShowingOptionDialog()) {
return; return;
} }
showSubtypeSelectorAndSettings(); showSubtypeSelectorAndSettings();
*/
} }
@Override @Override
@ -1391,7 +1394,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
public void switchToNextSubtype() { public void switchToNextSubtype() {
final IBinder token = getWindow().getWindow().getAttributes().token; final IBinder token = getWindow().getWindow().getAttributes().token;
if (shouldSwitchToOtherInputMethods()) { if (shouldSwitchToOtherInputMethods()) {
mRichImm.switchToNextInputMethod(token, false /* onlyCurrentIme */); mRichImm.switchToNextInputMethod(token, true /* onlyCurrentIme */);
return; return;
} }
mSubtypeState.switchSubtype(token, mRichImm); mSubtypeState.switchSubtype(token, mRichImm);