tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 864273873be4ba1396cd6ca6b51b67e9cf816f91
parent 07f0285d68be0759cae39d3c30076c11bc13a806
Author: Mugurell <Mugurell@users.noreply.github.com>
Date:   Tue,  4 Nov 2025 08:36:51 +0000

Bug 1997637 - Ensure the AwesomeBar is not shown in custom tabs r=android-reviewers,skhan

Guard showing the AwesomeBar in custom tabs similarly to how we check
and avoid showing the TabStrip in custom tabs.

Differential Revision: https://phabricator.services.mozilla.com/D271037

Diffstat:
Mmobile/android/fenix/app/src/main/java/org/mozilla/fenix/components/toolbar/BrowserToolbarComposable.kt | 12+++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/components/toolbar/BrowserToolbarComposable.kt b/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/components/toolbar/BrowserToolbarComposable.kt @@ -134,7 +134,9 @@ class BrowserToolbarComposable( ) { tabStripContent() BrowserToolbar(toolbarStore) - searchSuggestionsContent(Modifier.weight(1f)) + if (customTabSession == null) { + searchSuggestionsContent(Modifier.weight(1f)) + } } false -> Column( @@ -143,12 +145,16 @@ class BrowserToolbarComposable( .wrapContentHeight(), ) { if (shouldUseBottomToolbar) { - searchSuggestionsContent(Modifier.weight(1f)) + if (customTabSession == null) { + searchSuggestionsContent(Modifier.weight(1f)) + } BrowserToolbar(toolbarStore) navigationBarContent?.invoke() } else { BrowserToolbar(toolbarStore) - searchSuggestionsContent(Modifier.weight(1f)) + if (customTabSession == null) { + searchSuggestionsContent(Modifier.weight(1f)) + } } } }