forked from shadowfacts/Tusker
Disable row insertion animations
This commit is contained in:
parent
f2e08e96f3
commit
20c602f911
|
@ -94,7 +94,9 @@ class BookmarksTableViewController: EnhancedTableViewController {
|
|||
self.statuses.append(contentsOf: newStatuses.map { ($0.id, .unknown) })
|
||||
|
||||
DispatchQueue.main.async {
|
||||
self.tableView.insertRows(at: newIndexPaths, with: .automatic)
|
||||
UIView.performWithoutAnimation {
|
||||
self.tableView.insertRows(at: newIndexPaths, with: .automatic)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -143,7 +143,9 @@ class NotificationsTableViewController: EnhancedTableViewController {
|
|||
self.older = pagination?.older
|
||||
|
||||
DispatchQueue.main.async {
|
||||
self.tableView.insertRows(at: newIndexPaths, with: .automatic)
|
||||
UIView.performWithoutAnimation {
|
||||
self.tableView.insertRows(at: newIndexPaths, with: .automatic)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -224,8 +226,10 @@ class NotificationsTableViewController: EnhancedTableViewController {
|
|||
let newIndexPaths = (0..<groups.count).map {
|
||||
IndexPath(row: $0, section: 0)
|
||||
}
|
||||
self.tableView.insertRows(at: newIndexPaths, with: .automatic)
|
||||
|
||||
UIView.performWithoutAnimation {
|
||||
self.tableView.insertRows(at: newIndexPaths, with: .automatic)
|
||||
}
|
||||
|
||||
self.refreshControl?.endRefreshing()
|
||||
|
||||
// maintain the current position in the list (don't scroll to top)
|
||||
|
|
|
@ -106,7 +106,9 @@ class TimelineTableViewController: EnhancedTableViewController {
|
|||
let newIndexPaths = newRows.map { IndexPath(row: $0, section: self.timelineSegments.count - 1) }
|
||||
self.timelineSegments[self.timelineSegments.count - 1].append(contentsOf: newStatuses.map { ($0.id, .unknown) })
|
||||
DispatchQueue.main.async {
|
||||
self.tableView.insertRows(at: newIndexPaths, with: .none)
|
||||
UIView.performWithoutAnimation {
|
||||
self.tableView.insertRows(at: newIndexPaths, with: .none)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -142,7 +144,9 @@ class TimelineTableViewController: EnhancedTableViewController {
|
|||
let newIndexPaths = (0..<newStatuses.count).map {
|
||||
IndexPath(row: $0, section: 0)
|
||||
}
|
||||
self.tableView.insertRows(at: newIndexPaths, with: .automatic)
|
||||
UIView.performWithoutAnimation {
|
||||
self.tableView.insertRows(at: newIndexPaths, with: .automatic)
|
||||
}
|
||||
|
||||
self.refreshControl?.endRefreshing()
|
||||
|
||||
|
|
Loading…
Reference in New Issue