mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
fix an issue where the textview is not scrollable after the app goes into background and goes back in foreground.
This commit is contained in:
parent
fa9de8c9c3
commit
37dc1631b5
|
@ -441,6 +441,12 @@ final class ConversationVC : BaseVC, ConversationViewModelDelegate, OWSConversat
|
||||||
mediaCache.removeAllObjects()
|
mediaCache.removeAllObjects()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override func appDidBecomeActive(_ notification: Notification) {
|
||||||
|
// This is a workaround for an issue where the textview is not scrollable
|
||||||
|
// after the app goes into background and goes back in foreground.
|
||||||
|
self.snInputView.text = self.snInputView.text
|
||||||
|
}
|
||||||
|
|
||||||
deinit {
|
deinit {
|
||||||
NotificationCenter.default.removeObserver(self)
|
NotificationCenter.default.removeObserver(self)
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,6 +25,7 @@ class BaseVC : UIViewController {
|
||||||
override func viewDidLoad() {
|
override func viewDidLoad() {
|
||||||
setNeedsStatusBarAppearanceUpdate()
|
setNeedsStatusBarAppearanceUpdate()
|
||||||
NotificationCenter.default.addObserver(self, selector: #selector(handleAppModeChangedNotification(_:)), name: .appModeChanged, object: nil)
|
NotificationCenter.default.addObserver(self, selector: #selector(handleAppModeChangedNotification(_:)), name: .appModeChanged, object: nil)
|
||||||
|
NotificationCenter.default.addObserver(self, selector: #selector(appDidBecomeActive(_:)), name: .OWSApplicationDidBecomeActive, object: nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
internal func ensureWindowBackground() {
|
internal func ensureWindowBackground() {
|
||||||
|
@ -104,6 +105,10 @@ class BaseVC : UIViewController {
|
||||||
deinit {
|
deinit {
|
||||||
NotificationCenter.default.removeObserver(self)
|
NotificationCenter.default.removeObserver(self)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@objc func appDidBecomeActive(_ notification: Notification) {
|
||||||
|
// To be implemented
|
||||||
|
}
|
||||||
|
|
||||||
override func traitCollectionDidChange(_ previousTraitCollection: UITraitCollection?) {
|
override func traitCollectionDidChange(_ previousTraitCollection: UITraitCollection?) {
|
||||||
if #available(iOS 13.0, *) {
|
if #available(iOS 13.0, *) {
|
||||||
|
|
Loading…
Reference in a new issue