Fix rows from being deselected when back button is pressed
This commit is contained in:
parent
c814b1ccf2
commit
bea738e0ec
|
@ -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