From 2421f5fec545bb135cb68d0bf201ce08c4d656bc Mon Sep 17 00:00:00 2001 From: celenity Date: Sat, 5 Jul 2025 16:38:36 -0400 Subject: [PATCH] fix Signed-off-by: celenity --- patches/disable-nags.patch | 8 ++--- patches/fenix-disable-crash-reporting.patch | 36 ++++++++++++++++++++- 2 files changed, 39 insertions(+), 5 deletions(-) diff --git a/patches/disable-nags.patch b/patches/disable-nags.patch index e6536494..366ef57a 100644 --- a/patches/disable-nags.patch +++ b/patches/disable-nags.patch @@ -12,7 +12,7 @@ index e5ab956ac3..4d1ef3de39 100644 private fun isNotDefaultBrowser(context: Context) = diff --git a/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/utils/Settings.kt b/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/utils/Settings.kt -index 7f19ba4304..bc059422db 100644 +index 7f19ba4304..0f29d724a6 100644 --- a/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/utils/Settings.kt +++ b/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/utils/Settings.kt @@ -198,7 +198,7 @@ class Settings(private val appContext: Context) : PreferencesHolder { @@ -94,13 +94,13 @@ index 7f19ba4304..bc059422db 100644 - key = appContext.getPreferenceKey(R.string.pref_key_re_engagement_notification_enabled), - default = { FxNimbus.features.reEngagementNotification.value().enabled }, - featureFlag = true, +- ) + var reEngagementNotificationEnabled = false +// key = appContext.getPreferenceKey(R.string.pref_key_re_engagement_notification_enabled), +// default = { FxNimbus.features.reEngagementNotification.value().enabled }, +// featureFlag = true, - ) -- -+// ++// ) + /** * Indicates if the re-engagement notification feature is enabled */ diff --git a/patches/fenix-disable-crash-reporting.patch b/patches/fenix-disable-crash-reporting.patch index 4252d8ef..c58775e9 100644 --- a/patches/fenix-disable-crash-reporting.patch +++ b/patches/fenix-disable-crash-reporting.patch @@ -329,9 +329,43 @@ index 13db9f3c83..37fa89c98f 100644 protected open fun initializeNimbus() { diff --git a/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/components/Analytics.kt b/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/components/Analytics.kt -index 1ad6a264c7..ba0e55e734 100644 +index 1ad6a264c7..6cb95a28c0 100644 --- a/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/components/Analytics.kt +++ b/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/components/Analytics.kt +@@ -16,7 +16,7 @@ import mozilla.components.lib.crash.service.GleanCrashReporterService + import mozilla.components.lib.crash.service.MozillaSocorroService + import mozilla.components.support.ktx.android.content.isMainProcess + import mozilla.components.support.utils.BrowsersCache +-import mozilla.components.support.utils.RunWhenReadyQueue ++//import mozilla.components.support.utils.RunWhenReadyQueue + import org.mozilla.fenix.BuildConfig + import org.mozilla.fenix.Config + import org.mozilla.fenix.HomeActivity +@@ -45,7 +45,7 @@ import org.mozilla.geckoview.BuildConfig.MOZ_UPDATE_CHANNEL + */ + class Analytics( + private val context: Context, +- private val runWhenReadyQueue: RunWhenReadyQueue, ++// private val runWhenReadyQueue: RunWhenReadyQueue, + ) { + val crashReporter: CrashReporter by lazyMonitored { + val services = mutableListOf() +@@ -74,12 +74,12 @@ class Analytics( + + // We only want to initialize Sentry on startup on the main process. + if (context.isMainProcess()) { +- runWhenReadyQueue.runIfReadyOrQueue { +- sentryService.initIfNeeded() ++// runWhenReadyQueue.runIfReadyOrQueue { ++// sentryService.initIfNeeded() + } + } + +- services.add(sentryService) ++// services.add(sentryService) + } + + // The name "Fenix" here matches the product name on Socorro and is unrelated to the actual app name: @@ -93,7 +93,7 @@ class Analytics( releaseChannel = MOZ_UPDATE_CHANNEL, distributionId = distributionId,