Skip to content

Commit

Permalink
Merge branch 'feature/hide-account-id' into beta-2.12.4
Browse files Browse the repository at this point in the history
  • Loading branch information
jurajhilje committed Sep 10, 2024
2 parents 65ddfb3 + cfa7e44 commit ca60f28
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions IVPNClient/Scenes/AccountScreen/AccountViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ class AccountViewController: UITableViewController {
override func viewDidLoad() {
super.viewDidLoad()
tableView.backgroundColor = UIColor.init(named: Theme.ivpnBackgroundQuaternary)
NotificationCenter.default.addObserver(self, selector: #selector(willEnterForeground), name: UIApplication.willEnterForegroundNotification, object: nil)
initNavigationBar()
addObservers()
accountView.setupView(viewModel: viewModel)
Expand All @@ -99,6 +100,10 @@ class AccountViewController: UITableViewController {
sessionManager.getSessionStatus()
}

@objc func willEnterForeground(notification: NSNotification) {
accountView.setupView(viewModel: viewModel)
}

// MARK: - Observers -

func addObservers() {
Expand Down

0 comments on commit ca60f28

Please sign in to comment.