Skip to content

Commit

Permalink
Restore full token deletion animation
Browse files Browse the repository at this point in the history
Every token list view model update – even those without any row changes – was triggering a table view update. As a result, the row deletion animation when a token was deleted was cut short by the (empty) animation set of the next update. The fix is to prevent table updates except when truly necessary.
  • Loading branch information
mattrubin committed Jan 31, 2016
1 parent 9f14f49 commit d158ff4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Authenticator/Source/TokenListViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ extension TokenListViewController {
}

private func updateTableViewWithChanges(changes: [Change]) {
if preventTableViewAnimations {
if changes.isEmpty || preventTableViewAnimations {
return
}

Expand Down

0 comments on commit d158ff4

Please sign in to comment.