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 95f46ee335
commit decb5a46b8
Signed by: shadowfacts
GPG Key ID: 94A5AB95422746E5
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) {
super.viewWillAppear(animated)
for cell in tableView.visibleCells {
if let cell = cell as? PreferencesAdaptive {
cell.updateUIForPreferences()

View File

@ -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()

View File

@ -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()