From 5a7fabf216aabee076df649d92fff96daddeb46f Mon Sep 17 00:00:00 2001 From: Ryan Zhao Date: Wed, 1 Dec 2021 15:05:30 +1100 Subject: [PATCH] minor improvement on theme change --- Session/Shared/BaseVC.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Session/Shared/BaseVC.swift b/Session/Shared/BaseVC.swift index 75800f7b3..83f9c9262 100644 --- a/Session/Shared/BaseVC.swift +++ b/Session/Shared/BaseVC.swift @@ -90,7 +90,9 @@ class BaseVC : UIViewController { } override func traitCollectionDidChange(_ previousTraitCollection: UITraitCollection?) { - // NotificationCenter.default.post(name: .appModeChanged, object: nil) + if LKAppModeUtilities.isSystemDefault { + NotificationCenter.default.post(name: .appModeChanged, object: nil) + } } @objc internal func handleAppModeChangedNotification(_ notification: Notification) {