diff --git a/app/src/main/java/org/mozilla/fenix/browser/OpenInAppOnboardingObserver.kt b/app/src/main/java/org/mozilla/fenix/browser/OpenInAppOnboardingObserver.kt index 7b951c9b10..82e6e5aea8 100644 --- a/app/src/main/java/org/mozilla/fenix/browser/OpenInAppOnboardingObserver.kt +++ b/app/src/main/java/org/mozilla/fenix/browser/OpenInAppOnboardingObserver.kt @@ -36,10 +36,12 @@ class OpenInAppOnboardingObserver( } } + @Suppress("ComplexCondition") override fun onLoadingStateChanged(session: Session, loading: Boolean) { val appLink = appLinksUseCases.appLinkRedirect if (!loading && + !settings.openLinksInExternalApp && settings.shouldShowOpenInAppBanner && appLink(session.url).hasExternalApp() ) {