Re-enable input language restoration

This commit is contained in:
Peter 2018-12-21 20:21:00 +04:00
parent 258b0686d2
commit 711f2e46be

View File

@ -196,14 +196,14 @@
- (UITextInputMode *)textInputMode {
if (!_initializedPrimaryInputLanguage) {
_initializedPrimaryInputLanguage = true;
/*if (_initialPrimaryLanguage != nil) {
if (_initialPrimaryLanguage != nil) {
for (UITextInputMode *inputMode in [UITextInputMode activeInputModes]) {
NSString *primaryLanguage = inputMode.primaryLanguage;
if (primaryLanguage != nil && [primaryLanguage isEqualToString:_initialPrimaryLanguage]) {
return inputMode;
}
}
}*/
}
}
return [super textInputMode];
}