Skip to content

Commit

Permalink
Merge pull request #1330 from nextcloud/fix-appstate-change-notificat…
Browse files Browse the repository at this point in the history
…ion-in-swift

Fix appStateHasChanged in SettingsTableViewController
  • Loading branch information
SystemKeeper authored Aug 16, 2023
2 parents 5f1ca86 + f3cb91a commit d22ede8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion NextcloudTalk/SettingsTableViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,8 @@ class SettingsTableViewController: UITableViewController, UITextFieldDelegate {

@objc func appStateHasChanged(notification: NSNotification) {
let appState = notification.userInfo?["appState"]
if let appState = appState as? AppState {
if let rawAppState = appState as? UInt32 {
let appState = AppState(rawValue: rawAppState)
self.adaptInterfaceForAppState(appState: appState)
}
}
Expand Down

0 comments on commit d22ede8

Please sign in to comment.