mirror of
https://github.com/keymanapp/keyman.git
synced 2026-10-11 08:27:27 +00:00
fix(ios): prevent repeating timer from keeping inaccessible WebViews alive
This commit is contained in:
parent
665295537e
commit
d66fa6affe
2 changed files with 5 additions and 0 deletions
|
|
@ -165,6 +165,7 @@ open class InputViewController: UIInputViewController, KeymanWebDelegate {
|
|||
inputView?.removeFromSuperview()
|
||||
(inputView as? CustomInputView)?.destroy()
|
||||
inputView = nil
|
||||
keymanWeb.clearDeathPoller()
|
||||
}
|
||||
|
||||
open override func updateViewConstraints() {
|
||||
|
|
|
|||
|
|
@ -219,6 +219,10 @@ class KeymanWebViewController: UIViewController {
|
|||
|
||||
reloadKeyboard()
|
||||
}
|
||||
|
||||
func clearDeathPoller() {
|
||||
self.deathPoller?.invalidate()
|
||||
}
|
||||
|
||||
override func viewWillAppear(_ animated: Bool) {
|
||||
super.viewWillAppear(animated)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue