mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-15 18:59:54 +00:00
Re-enable input language restoration
This commit is contained in:
parent
258b0686d2
commit
711f2e46be
@ -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];
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user