animate switching off homeviews selection mode if only cell content is changed

This commit is contained in:
Martin Böttcher 2022-01-21 13:48:01 +01:00
parent 78ab14e38e
commit ecc804ca4b

View File

@ -175,6 +175,9 @@ extension HomeViewController {
tableView.insertRows(at: [newIndexPath], with: rowAnimation)
}
case .update(let oldIndexPath):
if tableView.isEditing && !viewState.multiSelectState.isActive {
checkAndSetTableUpdates()
}
let tds = tableView.dataSource as? HVTableDataSource
if tds == nil || !tds!.updateVisibleCellContent(at: oldIndexPath, for: tableView) {
checkAndSetTableUpdates()