Merge branch 'feature/audio_player_behavior' into 'develop'

Feature/audio player behavior

See merge request BPHV_MIPS/mvm_core_ui!736
This commit is contained in:
Pfeil, Scott Robert 2021-07-20 18:05:48 +00:00
commit a54e438f51

View File

@ -244,10 +244,13 @@ open class MoleculeListTemplate: ThreeLayerTableViewController, TemplateProtocol
return false
}) else { return }
// Refresh the cell.
// Refresh the cell. (reload loses cell selection)
let selectedIndex = tableView.indexPathForSelectedRow
let indexPath = IndexPath(row: index, section: 0)
_ = tableView(tableView, cellForRowAt: indexPath)
performTableViewUpdates()
tableView.reloadRows(at: [indexPath], with: .automatic)
if let selectedIndex = selectedIndex {
tableView.selectRow(at: selectedIndex, animated: false, scrollPosition: .none)
}
}
open override func removeMolecules(_ molecules: [ListItemModelProtocol & MoleculeModelProtocol], animation: UITableView.RowAnimation) {