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:
commit
a54e438f51
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user