|
|
|
@ -25,6 +25,7 @@ class BaseVC : UIViewController {
|
|
|
|
|
override func viewDidLoad() {
|
|
|
|
|
setNeedsStatusBarAppearanceUpdate()
|
|
|
|
|
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() {
|
|
|
|
@ -105,6 +106,10 @@ class BaseVC : UIViewController {
|
|
|
|
|
NotificationCenter.default.removeObserver(self)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@objc func appDidBecomeActive(_ notification: Notification) {
|
|
|
|
|
// To be implemented
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
override func traitCollectionDidChange(_ previousTraitCollection: UITraitCollection?) {
|
|
|
|
|
if #available(iOS 13.0, *) {
|
|
|
|
|
SNLog("Current trait collection: \(UITraitCollection.current), previous trait collection: \(previousTraitCollection)")
|
|
|
|
|