2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-02 03:40:16 +00:00

[fenix] For https://github.com/mozilla-mobile/fenix/issues/15150: Do not show open banner if open in app is ON in settings.

This commit is contained in:
mcarare 2020-09-17 18:21:40 +03:00 committed by Mihai Adrian Carare
parent a6591cb3fe
commit a1a9202e1f

View File

@ -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()
) {