Fix rows from being deselected when back button is pressed

This commit is contained in:
Shadowfacts 2018-08-28 21:46:57 -04:00
parent c814b1ccf2
commit bea738e0ec
3 changed files with 6 additions and 0 deletions

View File

@ -55,6 +55,8 @@ class ConversationViewController: UIViewController, UITableViewDataSource, UITab
} }
override func viewWillAppear(_ animated: Bool) { override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
for cell in tableView.visibleCells { for cell in tableView.visibleCells {
if let cell = cell as? PreferencesAdaptive { if let cell = cell as? PreferencesAdaptive {
cell.updateUIForPreferences() cell.updateUIForPreferences()

View File

@ -56,6 +56,8 @@ class ProfileTableViewController: UITableViewController, PreferencesAdaptive {
} }
override func viewWillAppear(_ animated: Bool) { override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
for cell in tableView.visibleCells { for cell in tableView.visibleCells {
if let cell = cell as? PreferencesAdaptive { if let cell = cell as? PreferencesAdaptive {
cell.updateUIForPreferences() cell.updateUIForPreferences()

View File

@ -61,6 +61,8 @@ class TimelineTableViewController: UITableViewController {
} }
override func viewWillAppear(_ animated: Bool) { override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
for cell in tableView.visibleCells { for cell in tableView.visibleCells {
if let cell = cell as? PreferencesAdaptive { if let cell = cell as? PreferencesAdaptive {
cell.updateUIForPreferences() cell.updateUIForPreferences()