-
Notifications
You must be signed in to change notification settings - Fork 939
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tab swiping: Integration of the new tab management #5322
Tab swiping: Integration of the new tab management #5322
Conversation
Thanks for the review, @malmstein!
I’ll double check this.
I planned to add tests in a separate PR. Just for some background, the philosophy of the TabManager here is not to act as a BL model, but rather as a UI-layer container for the tab-related functionality. I kept the calls to the ViewModel from TabManager to limit the changes in other parts of the app that might use these methods. But after a closer look, it seems they are called only from the TabManager. I moved them and now the ViewModel is not referenced anymore.
This was actually suggested by @nalcalag here. I’ve addressed your comments and I will address the broken/missing tests next. In the meantime, the PR's ready for another round. |
@malmstein I checked the code and added the missing feature flag checks in all the places. You were right, it was difficult to keep track of what’s new and what’s old with all the changes so I added the old code back and wrapped it in a FF. Take a look here to better see what’s different compared to |
…j/swiping-tabs-ui
…g-tabs-ui # Conflicts: # app/src/main/java/com/duckduckgo/app/browser/BrowserActivity.kt # app/src/main/java/com/duckduckgo/app/browser/tabs/RealTabManager.kt
After a discussion with @malmstein & @anikiki, squashing all PRs into a single one for easier review management. |
Task/Issue URL: https://app.asana.com/0/72649045549333/1208648123066962/f
Description
This PR includes the complete implementation of the tab-swiping functionality.
Steps to test this PR
Make sure you’ve completed the onboarding!
New tab from long press
New tab from the menu
New tab from tab switcher
New tab recreation
Swiping position
New link
New link in the background
New link in the background
Switch to tab
Changing the omnibar position
Bookmarks
Default site