From 9b07dd98bf1643aef9881ffb15fda1226ef14699 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Tue, 28 Aug 2018 21:46:57 -0400 Subject: [PATCH] Fix rows from being deselected when back button is pressed --- Tusker/View Controllers/ConversationViewController.swift | 2 ++ Tusker/View Controllers/ProfileTableViewController.swift | 2 ++ Tusker/View Controllers/TimelineTableViewController.swift | 2 ++ 3 files changed, 6 insertions(+) diff --git a/Tusker/View Controllers/ConversationViewController.swift b/Tusker/View Controllers/ConversationViewController.swift index 1de4b23140..9b17ddea03 100644 --- a/Tusker/View Controllers/ConversationViewController.swift +++ b/Tusker/View Controllers/ConversationViewController.swift @@ -55,6 +55,8 @@ class ConversationViewController: UIViewController, UITableViewDataSource, UITab } override func viewWillAppear(_ animated: Bool) { + super.viewWillAppear(animated) + for cell in tableView.visibleCells { if let cell = cell as? PreferencesAdaptive { cell.updateUIForPreferences() diff --git a/Tusker/View Controllers/ProfileTableViewController.swift b/Tusker/View Controllers/ProfileTableViewController.swift index 3208dd46a6..735169a998 100644 --- a/Tusker/View Controllers/ProfileTableViewController.swift +++ b/Tusker/View Controllers/ProfileTableViewController.swift @@ -56,6 +56,8 @@ class ProfileTableViewController: UITableViewController, PreferencesAdaptive { } override func viewWillAppear(_ animated: Bool) { + super.viewWillAppear(animated) + for cell in tableView.visibleCells { if let cell = cell as? PreferencesAdaptive { cell.updateUIForPreferences() diff --git a/Tusker/View Controllers/TimelineTableViewController.swift b/Tusker/View Controllers/TimelineTableViewController.swift index 1d33b15524..69dbaf1137 100644 --- a/Tusker/View Controllers/TimelineTableViewController.swift +++ b/Tusker/View Controllers/TimelineTableViewController.swift @@ -61,6 +61,8 @@ class TimelineTableViewController: UITableViewController { } override func viewWillAppear(_ animated: Bool) { + super.viewWillAppear(animated) + for cell in tableView.visibleCells { if let cell = cell as? PreferencesAdaptive { cell.updateUIForPreferences()