Android: Fix back navigation after "Web search" on a new tab, user should go to previous tab

Created on 21 Jan 2021  路  6Comments  路  Source: duckduckgo/Android

I always perform web search for words from the the current tab by doing a long press. The websearch usually happens on a new tab. Once im done with the new tab, i would like to return to my initial tab by just pressing the back button. Instead, the app is closing.

Describe the solution or the user experience you'd like
Always close the current tab while pressing the back button. If the user is on the last tab then close the app.

Additional context

Under investigation bug

Most helpful comment

Thanks for reporting that one.
We improved our tab navigation between tabs when opening a link in a new tab or in a background tab, but the "Web search" use case is something we didn't think about.

All 6 comments

+1 for what it's worth. I've always been slightly annoyed by this but just learned to live with it over the past few years.

Thanks for reporting that one.
We improved our tab navigation between tabs when opening a link in a new tab or in a background tab, but the "Web search" use case is something we didn't think about.

Hi,
Created a PR with the fix.
https://github.com/duckduckgo/Android/pull/1079

Thanks @subin-chella I've just merged the PR, it will be included in our next release. 馃

Hi @subin-chella we needed to rollback your contribution due to some issues found in our release.

See details here: https://github.com/duckduckgo/Android/pull/1106

TLDR;
External links were also created having a parent tab (sourceTab Id). The contribution correctly addressed the scenario of performing a "WebSearch" but it was applying the same logic to external intents. We should try to differentiate them.

Thanks.

Hi, I created a PR with a new fix #1154. Please take a look, thanks!

Was this page helpful?
0 / 5 - 0 ratings