For #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 80a573a62c
commit cc9667f722

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