Reload in the background on edit

This commit is contained in:
Davide De Rosa 2019-03-27 20:59:16 +01:00
parent f0d0eb5ed3
commit 05ba654b2f
1 changed files with 2 additions and 3 deletions

View File

@ -223,10 +223,9 @@ class ShortcutsEditViewController: UITableViewController, INUIEditVoiceShortcutV
editedIndexPath = nil editedIndexPath = nil
wrappers?[indexPath.row] = ShortcutWrapper.from(voiceShortcut) wrappers?[indexPath.row] = ShortcutWrapper.from(voiceShortcut)
wrappers?.sort() wrappers?.sort()
tableView.reloadData()
dismiss(animated: true) { dismiss(animated: true)
self.tableView.reloadData()
}
} }
func editVoiceShortcutViewController(_ controller: INUIEditVoiceShortcutViewController, didDeleteVoiceShortcutWithIdentifier deletedVoiceShortcutIdentifier: UUID) { func editVoiceShortcutViewController(_ controller: INUIEditVoiceShortcutViewController, didDeleteVoiceShortcutWithIdentifier deletedVoiceShortcutIdentifier: UUID) {