mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-16 11:20:18 +00:00
Re-enable input language restoration
This commit is contained in:
parent
258b0686d2
commit
711f2e46be
@ -196,14 +196,14 @@
|
|||||||
- (UITextInputMode *)textInputMode {
|
- (UITextInputMode *)textInputMode {
|
||||||
if (!_initializedPrimaryInputLanguage) {
|
if (!_initializedPrimaryInputLanguage) {
|
||||||
_initializedPrimaryInputLanguage = true;
|
_initializedPrimaryInputLanguage = true;
|
||||||
/*if (_initialPrimaryLanguage != nil) {
|
if (_initialPrimaryLanguage != nil) {
|
||||||
for (UITextInputMode *inputMode in [UITextInputMode activeInputModes]) {
|
for (UITextInputMode *inputMode in [UITextInputMode activeInputModes]) {
|
||||||
NSString *primaryLanguage = inputMode.primaryLanguage;
|
NSString *primaryLanguage = inputMode.primaryLanguage;
|
||||||
if (primaryLanguage != nil && [primaryLanguage isEqualToString:_initialPrimaryLanguage]) {
|
if (primaryLanguage != nil && [primaryLanguage isEqualToString:_initialPrimaryLanguage]) {
|
||||||
return inputMode;
|
return inputMode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}*/
|
}
|
||||||
}
|
}
|
||||||
return [super textInputMode];
|
return [super textInputMode];
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user