Loading components/feature/app-links/build.gradle +1 −0 Changes for components/feature/app-links/build.gradle: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -36,6 +36,7 @@ dependencies { implementation Dependencies.kotlin_stdlib implementation Dependencies.kotlin_coroutines implementation project(path: ':support-utils') testImplementation project(':support-test') Loading components/feature/app-links/src/main/java/mozilla/components/feature/app/links/AppLinksFeature.kt +2 −1 Changes for components/feature/app-links/src/main/java/mozilla/components/feature/app/links/AppLinksFeature.kt: 2 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -67,7 +67,8 @@ class AppLinksFeature( loadUrlUseCase?.invoke(url, session, EngineSession.LoadUrlFlags.none()) } if (!session.private || fragmentManager == null) { // useCases.openAppLink will now prompt: calling it directly to avoid prompting twice if (true || !session.private || fragmentManager == null) { doOpenApp() return } Loading components/feature/app-links/src/main/java/mozilla/components/feature/app/links/AppLinksUseCases.kt +2 −1 Changes for components/feature/app-links/src/main/java/mozilla/components/feature/app/links/AppLinksUseCases.kt: 2 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -19,6 +19,7 @@ import mozilla.components.support.base.log.logger.Logger import mozilla.components.support.ktx.android.content.pm.isPackageInstalled import mozilla.components.support.ktx.android.net.isHttpOrHttps import java.net.URISyntaxException import mozilla.components.support.utils.TorUtils private const val EXTRA_BROWSER_FALLBACK_URL = "browser_fallback_url" private const val MARKET_INTENT_URI_PACKAGE_PREFIX = "market://details?id=" Loading Loading @@ -200,7 +201,7 @@ class AppLinksUseCases( if (launchInNewTask) { it.flags = it.flags or Intent.FLAG_ACTIVITY_NEW_TASK } context.startActivity(it) TorUtils.startActivityPrompt(context, it) } catch (e: ActivityNotFoundException) { failedToLaunchAction() Logger.error("failed to start third party app activity", e) Loading components/feature/contextmenu/src/main/java/mozilla/components/feature/contextmenu/ContextMenuCandidate.kt +2 −1 Changes for components/feature/contextmenu/src/main/java/mozilla/components/feature/contextmenu/ContextMenuCandidate.kt: 2 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -18,6 +18,7 @@ import mozilla.components.feature.app.links.AppLinksUseCases import mozilla.components.support.ktx.android.content.addContact import mozilla.components.support.ktx.android.content.share import mozilla.components.support.ktx.kotlin.stripMailToProtocol import mozilla.components.support.utils.TorUtils /** * A candidate for an item to be displayed in the context menu. Loading Loading @@ -320,7 +321,7 @@ data class ContextMenuCandidate( context.getString(R.string.mozac_feature_contextmenu_share_link) ).addFlags(Intent.FLAG_ACTIVITY_NEW_TASK) context.startActivity(shareIntent) TorUtils.startActivityPrompt(context, shareIntent) } ) Loading components/feature/downloads/src/main/java/mozilla/components/feature/downloads/AbstractFetchDownloadService.kt +2 −1 Changes for components/feature/downloads/src/main/java/mozilla/components/feature/downloads/AbstractFetchDownloadService.kt: 2 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -70,6 +70,7 @@ import mozilla.components.support.base.log.logger.Logger import mozilla.components.support.ktx.kotlin.sanitizeURL import mozilla.components.support.ktx.kotlinx.coroutines.throttleLatest import mozilla.components.support.utils.DownloadUtils import mozilla.components.support.utils.TorUtils import java.io.File import java.io.FileOutputStream import java.io.IOException Loading Loading @@ -812,7 +813,7 @@ abstract class AbstractFetchDownloadService : Service() { } return try { context.startActivity(newIntent) TorUtils.startActivityPrompt(context, newIntent) true } catch (error: ActivityNotFoundException) { false Loading Loading
components/feature/app-links/build.gradle +1 −0 Changes for components/feature/app-links/build.gradle: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -36,6 +36,7 @@ dependencies { implementation Dependencies.kotlin_stdlib implementation Dependencies.kotlin_coroutines implementation project(path: ':support-utils') testImplementation project(':support-test') Loading
components/feature/app-links/src/main/java/mozilla/components/feature/app/links/AppLinksFeature.kt +2 −1 Changes for components/feature/app-links/src/main/java/mozilla/components/feature/app/links/AppLinksFeature.kt: 2 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -67,7 +67,8 @@ class AppLinksFeature( loadUrlUseCase?.invoke(url, session, EngineSession.LoadUrlFlags.none()) } if (!session.private || fragmentManager == null) { // useCases.openAppLink will now prompt: calling it directly to avoid prompting twice if (true || !session.private || fragmentManager == null) { doOpenApp() return } Loading
components/feature/app-links/src/main/java/mozilla/components/feature/app/links/AppLinksUseCases.kt +2 −1 Changes for components/feature/app-links/src/main/java/mozilla/components/feature/app/links/AppLinksUseCases.kt: 2 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -19,6 +19,7 @@ import mozilla.components.support.base.log.logger.Logger import mozilla.components.support.ktx.android.content.pm.isPackageInstalled import mozilla.components.support.ktx.android.net.isHttpOrHttps import java.net.URISyntaxException import mozilla.components.support.utils.TorUtils private const val EXTRA_BROWSER_FALLBACK_URL = "browser_fallback_url" private const val MARKET_INTENT_URI_PACKAGE_PREFIX = "market://details?id=" Loading Loading @@ -200,7 +201,7 @@ class AppLinksUseCases( if (launchInNewTask) { it.flags = it.flags or Intent.FLAG_ACTIVITY_NEW_TASK } context.startActivity(it) TorUtils.startActivityPrompt(context, it) } catch (e: ActivityNotFoundException) { failedToLaunchAction() Logger.error("failed to start third party app activity", e) Loading
components/feature/contextmenu/src/main/java/mozilla/components/feature/contextmenu/ContextMenuCandidate.kt +2 −1 Changes for components/feature/contextmenu/src/main/java/mozilla/components/feature/contextmenu/ContextMenuCandidate.kt: 2 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -18,6 +18,7 @@ import mozilla.components.feature.app.links.AppLinksUseCases import mozilla.components.support.ktx.android.content.addContact import mozilla.components.support.ktx.android.content.share import mozilla.components.support.ktx.kotlin.stripMailToProtocol import mozilla.components.support.utils.TorUtils /** * A candidate for an item to be displayed in the context menu. Loading Loading @@ -320,7 +321,7 @@ data class ContextMenuCandidate( context.getString(R.string.mozac_feature_contextmenu_share_link) ).addFlags(Intent.FLAG_ACTIVITY_NEW_TASK) context.startActivity(shareIntent) TorUtils.startActivityPrompt(context, shareIntent) } ) Loading
components/feature/downloads/src/main/java/mozilla/components/feature/downloads/AbstractFetchDownloadService.kt +2 −1 Changes for components/feature/downloads/src/main/java/mozilla/components/feature/downloads/AbstractFetchDownloadService.kt: 2 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -70,6 +70,7 @@ import mozilla.components.support.base.log.logger.Logger import mozilla.components.support.ktx.kotlin.sanitizeURL import mozilla.components.support.ktx.kotlinx.coroutines.throttleLatest import mozilla.components.support.utils.DownloadUtils import mozilla.components.support.utils.TorUtils import java.io.File import java.io.FileOutputStream import java.io.IOException Loading Loading @@ -812,7 +813,7 @@ abstract class AbstractFetchDownloadService : Service() { } return try { context.startActivity(newIntent) TorUtils.startActivityPrompt(context, newIntent) true } catch (error: ActivityNotFoundException) { false Loading