From 15d6f0c32f63ac06eab3e470039f5da4353294a3 Mon Sep 17 00:00:00 2001 From: Cris Barreiro Date: Tue, 3 Dec 2024 14:53:18 +0100 Subject: [PATCH] Rename missing instance --- .../main/java/com/duckduckgo/app/browser/BrowserTabFragment.kt | 2 +- .../dashboard/api/ui/PrivacyDashboardHybridScreenParams.kt | 2 +- .../privacy/dashboard/impl/ui/PrivacyDashboardHybridActivity.kt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/duckduckgo/app/browser/BrowserTabFragment.kt b/app/src/main/java/com/duckduckgo/app/browser/BrowserTabFragment.kt index 55c46af6db1b..54da14ec38ae 100644 --- a/app/src/main/java/com/duckduckgo/app/browser/BrowserTabFragment.kt +++ b/app/src/main/java/com/duckduckgo/app/browser/BrowserTabFragment.kt @@ -1921,7 +1921,7 @@ class BrowserTabFragment : if (webBrokenSiteForm.shouldUseWebBrokenSiteForm()) { val reportFlow = when (data.reportFlow) { - RELOAD_THREE_TIMES_WITHIN_20_SECONDS -> BrokenSiteFormReportFlow.PROMPT + RELOAD_THREE_TIMES_WITHIN_20_SECONDS -> BrokenSiteFormReportFlow.RELOAD_THREE_TIMES_WITHIN_20_SECONDS else -> BrokenSiteFormReportFlow.MENU } globalActivityStarter.startIntent(context, BrokenSiteForm(tabId = tabId, reportFlow = reportFlow)) diff --git a/privacy-dashboard/privacy-dashboard-api/src/main/java/com/duckduckgo/privacy/dashboard/api/ui/PrivacyDashboardHybridScreenParams.kt b/privacy-dashboard/privacy-dashboard-api/src/main/java/com/duckduckgo/privacy/dashboard/api/ui/PrivacyDashboardHybridScreenParams.kt index 4eaf2714fba0..d5c3b6677a74 100644 --- a/privacy-dashboard/privacy-dashboard-api/src/main/java/com/duckduckgo/privacy/dashboard/api/ui/PrivacyDashboardHybridScreenParams.kt +++ b/privacy-dashboard/privacy-dashboard-api/src/main/java/com/duckduckgo/privacy/dashboard/api/ui/PrivacyDashboardHybridScreenParams.kt @@ -50,7 +50,7 @@ sealed class PrivacyDashboardHybridScreenParams : GlobalActivityStarter.Activity ) : PrivacyDashboardHybridScreenParams() { enum class BrokenSiteFormReportFlow { MENU, - PROMPT, + RELOAD_THREE_TIMES_WITHIN_20_SECONDS, } } diff --git a/privacy-dashboard/privacy-dashboard-impl/src/main/java/com/duckduckgo/privacy/dashboard/impl/ui/PrivacyDashboardHybridActivity.kt b/privacy-dashboard/privacy-dashboard-impl/src/main/java/com/duckduckgo/privacy/dashboard/impl/ui/PrivacyDashboardHybridActivity.kt index 385186fdb680..11ec0f35acb1 100644 --- a/privacy-dashboard/privacy-dashboard-impl/src/main/java/com/duckduckgo/privacy/dashboard/impl/ui/PrivacyDashboardHybridActivity.kt +++ b/privacy-dashboard/privacy-dashboard-impl/src/main/java/com/duckduckgo/privacy/dashboard/impl/ui/PrivacyDashboardHybridActivity.kt @@ -109,7 +109,7 @@ class PrivacyDashboardHybridActivity : DuckDuckGoActivity() { is BrokenSiteForm -> { when (params.reportFlow) { BrokenSiteForm.BrokenSiteFormReportFlow.MENU -> ReportFlow.MENU - BrokenSiteForm.BrokenSiteFormReportFlow.PROMPT -> ReportFlow.RELOAD_THREE_TIMES_WITHIN_20_SECONDS + BrokenSiteForm.BrokenSiteFormReportFlow.RELOAD_THREE_TIMES_WITHIN_20_SECONDS -> ReportFlow.RELOAD_THREE_TIMES_WITHIN_20_SECONDS } } else -> ReportFlow.DASHBOARD