mirror of
https://github.com/signalapp/Signal-iOS.git
synced 2025-12-05 01:10:41 +00:00
Fix share extension theme not updating on system appearance change
This commit is contained in:
committed by
Sasha Weiss
parent
59a0c48c8a
commit
2f3c6b19e8
@@ -230,6 +230,15 @@ open class ConversationPickerViewController: OWSTableViewController2 {
|
||||
updateTableContents(shouldReload: false)
|
||||
}
|
||||
|
||||
open override func traitCollectionDidChange(_ previousTraitCollection: UITraitCollection?) {
|
||||
super.traitCollectionDidChange(previousTraitCollection)
|
||||
|
||||
let userInterfaceStyleDidChange = previousTraitCollection?.userInterfaceStyle != traitCollection.userInterfaceStyle
|
||||
if !CurrentAppContext().isMainApp, userInterfaceStyleDidChange {
|
||||
Theme.shareExtensionThemeOverride = traitCollection.userInterfaceStyle
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: - ConversationCollection
|
||||
|
||||
private func restoreSelection() {
|
||||
|
||||
Reference in New Issue
Block a user