From cfcabdb0f1d4fee350dfae2fda0b278494350cf8 Mon Sep 17 00:00:00 2001 From: jahorton Date: Wed, 4 Aug 2021 12:22:30 +0700 Subject: [PATCH] fix(ios): also, the language-specific settings --- .../Classes/Settings/LanguageSettingsViewController.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ios/engine/KMEI/KeymanEngine/Classes/Settings/LanguageSettingsViewController.swift b/ios/engine/KMEI/KeymanEngine/Classes/Settings/LanguageSettingsViewController.swift index 9d4a270120..8791d15729 100644 --- a/ios/engine/KMEI/KeymanEngine/Classes/Settings/LanguageSettingsViewController.swift +++ b/ios/engine/KMEI/KeymanEngine/Classes/Settings/LanguageSettingsViewController.swift @@ -150,6 +150,8 @@ class LanguageSettingsViewController: UITableViewController { doPredictionsSwitch!.isOn = userDefaults.predictSettingForLanguage(languageID: self.language.id) doPredictionsSwitch!.addTarget(self, action: #selector(self.predictionSwitchValueChanged), for: .valueChanged) cell.addSubview(doPredictionsSwitch!) + cell.contentView.isUserInteractionEnabled = false + if #available(iOSApplicationExtension 9.0, *) { doPredictionsSwitch!.rightAnchor.constraint(equalTo: cell.layoutMarginsGuide.rightAnchor).isActive = true doPredictionsSwitch!.centerYAnchor.constraint(equalTo: cell.layoutMarginsGuide.centerYAnchor).isActive = true @@ -166,6 +168,8 @@ class LanguageSettingsViewController: UITableViewController { doCorrectionsSwitch!.isOn = userDefaults.correctSettingForLanguage(languageID: self.language.id) doCorrectionsSwitch!.addTarget(self, action: #selector(self.correctionSwitchValueChanged), for: .valueChanged) cell.addSubview(doCorrectionsSwitch!) + cell.contentView.isUserInteractionEnabled = false + if #available(iOSApplicationExtension 9.0, *) { doCorrectionsSwitch!.rightAnchor.constraint(equalTo: cell.layoutMarginsGuide.rightAnchor).isActive = true doCorrectionsSwitch!.centerYAnchor.constraint(equalTo: cell.layoutMarginsGuide.centerYAnchor).isActive = true