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:
parent
a6591cb3fe
commit
a1a9202e1f
@ -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()
|
||||
) {
|
||||
|
Loading…
Reference in New Issue
Block a user