Skip to content

Commit

Permalink
LicenseVC: fixing crash on enter background
Browse files Browse the repository at this point in the history
  • Loading branch information
BLeeEZ committed Jul 15, 2022
1 parent d1aedb0 commit c2cbeb5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Amperfy/Screens/ViewController/LicenseVC.swift
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,9 @@ class LicenseVC: UIViewController {
// handle dark/light mode change
override func traitCollectionDidChange(_ previousTraitCollection: UITraitCollection?) {
super.traitCollectionDidChange(previousTraitCollection)
updateView()
DispatchQueue.main.async {
self.updateView()
}
}

}
4 changes: 3 additions & 1 deletion Amperfy/Screens/ViewController/SettingsXCallbackURLsVC.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ class SettingsXCallbackURLsVC: UIViewController {
// handle dark/light mode change
override func traitCollectionDidChange(_ previousTraitCollection: UITraitCollection?) {
super.traitCollectionDidChange(previousTraitCollection)
updateView()
DispatchQueue.main.async {
self.updateView()
}
}

func updateView() {
Expand Down

0 comments on commit c2cbeb5

Please sign in to comment.