Skip to content

Commit

Permalink
Fix mozilla-mobile#6271 - App crash when changing text size
Browse files Browse the repository at this point in the history
  • Loading branch information
KrystynaKruchkovska committed Mar 16, 2020
1 parent 3bdee63 commit 98875b5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Client/Frontend/Widgets/SiteTableViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ class SiteTableViewController: UIViewController, UITableViewDelegate, UITableVie
if let _ = self as? HomePanelContextMenu {
tableView.dragDelegate = self
}

// notification observer
NotificationCenter.default.addObserver(self, selector: #selector(applicationDidBecomeActive), name: UIApplication.didBecomeActiveNotification, object: nil)
}

deinit {
Expand All @@ -144,6 +147,10 @@ class SiteTableViewController: UIViewController, UITableViewDelegate, UITableVie
}
}, completion: nil)
}

@objc func applicationDidBecomeActive(){
reloadData()
}

func reloadData() {
if data.status != .success {
Expand Down

0 comments on commit 98875b5

Please sign in to comment.