forked from shadowfacts/Tusker
Fix conversation main status cell flashing wrong background color
Closes #386
This commit is contained in:
parent
06f761bf56
commit
32c5eee0b5
|
@ -326,7 +326,12 @@ class ConversationMainStatusCollectionViewCell: UICollectionViewListCell, Status
|
||||||
}
|
}
|
||||||
|
|
||||||
override func updateConfiguration(using state: UICellConfigurationState) {
|
override func updateConfiguration(using state: UICellConfigurationState) {
|
||||||
backgroundConfiguration = .appListPlainCell(for: state)
|
var config = UIBackgroundConfiguration.listPlainCell().updated(for: state)
|
||||||
|
// conv main status isn't selectable
|
||||||
|
if !state.isFocused {
|
||||||
|
config.backgroundColor = .appBackground
|
||||||
|
}
|
||||||
|
backgroundConfiguration = config
|
||||||
}
|
}
|
||||||
|
|
||||||
// MARK: Configure UI
|
// MARK: Configure UI
|
||||||
|
|
Loading…
Reference in New Issue