mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-06-08 07:37:41 +00:00
stick to language key setting
don't show langauge switch key in comma popups when there is nothing to switch fixes #897
This commit is contained in:
parent
6e520bf84c
commit
d0983e6c3b
4 changed files with 17 additions and 6 deletions
|
@ -1412,10 +1412,11 @@ public class LatinIME extends InputMethodService implements
|
|||
if (switchIme && !switchSubtype && switchInputMethod())
|
||||
return;
|
||||
final boolean hasMoreThanOneSubtype = mRichImm.getMyEnabledInputMethodSubtypeList(false).size() > 1;
|
||||
// switch subtype if wanted and possible
|
||||
if (switchSubtype && !switchIme && hasMoreThanOneSubtype) {
|
||||
// switch to previous subtype if current one was used, otherwise cycle through list
|
||||
mSubtypeState.switchSubtype(mRichImm);
|
||||
// switch subtype if wanted, do nothing if no other subtype is available
|
||||
if (switchSubtype && !switchIme) {
|
||||
if (hasMoreThanOneSubtype)
|
||||
// switch to previous subtype if current one was used, otherwise cycle through list
|
||||
mSubtypeState.switchSubtype(mRichImm);
|
||||
return;
|
||||
}
|
||||
// language key set to switch both, or language key is not shown on keyboard -> switch both
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue