Fix rows from being deselected when back button is pressed
This commit is contained in:
parent
7fda5ae9fe
commit
9b07dd98bf
|
@ -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()
|
||||||
|
|
|
@ -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()
|
||||||
|
|
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue