Reload the title view icon again after it becomes available

This commit is contained in:
Maurice Parker 2019-09-23 20:53:09 -05:00
parent cb1e8e393e
commit 4e239a44e1
1 changed files with 3 additions and 0 deletions

View File

@ -13,6 +13,7 @@ import Articles
class MasterTimelineViewController: UITableViewController, UndoableCommandRunner {
private var titleView: MasterTimelineTitleView?
private var numberOfTextLines = 0
@IBOutlet weak var markAllAsReadButton: UIBarButtonItem!
@ -342,6 +343,7 @@ class MasterTimelineViewController: UITableViewController, UndoableCommandRunner
}
@objc func faviconDidBecomeAvailable(_ note: Notification) {
titleView?.imageView.image = coordinator.timelineFavicon
if coordinator.showAvatars {
queueReloadAvailableCells()
}
@ -455,6 +457,7 @@ private extension MasterTimelineViewController {
title = coordinator.timelineName
if let titleView = Bundle.main.loadNibNamed("MasterTimelineTitleView", owner: self, options: nil)?[0] as? MasterTimelineTitleView {
self.titleView = titleView
titleView.imageView.image = coordinator.timelineFavicon
titleView.label.text = coordinator.timelineName
navigationItem.titleView = titleView