Skip to content
This repository was archived by the owner on Feb 24, 2025. It is now read-only.

Commit 072b077

Browse files
dus7Bunn
andauthored
Fix crash when rotating (#3957)
Task/Issue URL: https://app.asana.com/0/414709148257752/1209376796676971/f Tech Design URL: CC: **Description**: Fixes crash introduced on #3881 <!-- If at any point it isn't actively being worked on/ready for review/otherwise moving forward strongly consider closing it (or not opening it in the first place). If you decide not to close it, use Draft PR while work is still in progress or use `DO NOT MERGE` label to clarify the PRs state and comment with more information. --> Recreated from [already accepted PR](#3956). **Steps to test this PR**: 1.Test rotation to / from landscape with and without the keyboard. Confirm that the UI updates as expected and that the keyboard remains visible if it was visible before rotation. 2.Validate iPad behaviour remains the same. **Definition of Done (Internal Only)**: * [x] Does this PR satisfy our [Definition of Done](https://app.asana.com/0/1202500774821704/1207634633537039/f)? Co-authored-by: Fernando Bunn <[email protected]>
1 parent 715f693 commit 072b077

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

DuckDuckGo/SwipeTabsCoordinator.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,7 @@ class SwipeTabsCoordinator: NSObject {
111111
updateLayout()
112112
scrollToCurrent()
113113

114-
let indexPath = IndexPath(row: self.tabsModel.currentIndex, section: 0)
115-
collectionView.reloadItems(at: [indexPath])
114+
collectionView.reloadData()
116115
}
117116

118117
private func updateLayout() {

0 commit comments

Comments
 (0)