From 8acf1643ca997f987a83eeb94135b6a57ed43353 Mon Sep 17 00:00:00 2001 From: akliuxingyuan Date: Thu, 5 Sep 2024 19:20:55 +0800 Subject: [PATCH] fix display.urlFormatter --- .../mozilla/fenix/components/toolbar/BrowserToolbarView.kt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/src/main/java/org/mozilla/fenix/components/toolbar/BrowserToolbarView.kt b/app/src/main/java/org/mozilla/fenix/components/toolbar/BrowserToolbarView.kt index 8cb5385bc17f..b5621ab3861d 100644 --- a/app/src/main/java/org/mozilla/fenix/components/toolbar/BrowserToolbarView.kt +++ b/app/src/main/java/org/mozilla/fenix/components/toolbar/BrowserToolbarView.kt @@ -126,11 +126,7 @@ class BrowserToolbarView( if (!settings.shouldStripUrl) { {url -> url} } else { - if (isNavBarEnabled) { - {url -> Uri.parse(url.toString()).host ?: url} - } else { - {url -> URLStringUtils.toDisplayUrl(url)} - } + {url -> URLStringUtils.toDisplayUrl(url)} } display.hint = context.getString(R.string.search_hint)