Skip to content

Commit

Permalink
Added check if cell display count is not zero when orientation did ch…
Browse files Browse the repository at this point in the history
…ange
  • Loading branch information
SvenTiigi committed Apr 24, 2019
1 parent 9e577e4 commit 47ef580
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Sources/Components/Items/WhatsNewItemsViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,11 @@ extension WhatsNewItemsViewController {
/// - Parameter notification: The Notification
@objc
func orientationDidChange(notification: Notification) {
// Set is animation disabled to true
self.isAnimationDisabled = true
// Check if the Cell Display count is not zero
if self.cellDisplayCount != 0 {
// Set is animation disabled to true
self.isAnimationDisabled = true
}
// Reload TableView
self.tableView.reloadData()
}
Expand Down

0 comments on commit 47ef580

Please sign in to comment.