From 927736b4b1c4196e543f3739e8cc0c9a57ad0bc3 Mon Sep 17 00:00:00 2001 From: Eduarda Barbosa Date: Mon, 10 Feb 2025 14:38:34 -0300 Subject: [PATCH 1/2] fix page becomes unresponsive after seeing an offer --- .../account/onboarding/upgrade/OnboardingUpgradeFlow.kt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/modules/features/account/src/main/java/au/com/shiftyjelly/pocketcasts/account/onboarding/upgrade/OnboardingUpgradeFlow.kt b/modules/features/account/src/main/java/au/com/shiftyjelly/pocketcasts/account/onboarding/upgrade/OnboardingUpgradeFlow.kt index 57faf782621..5be47c44ba8 100644 --- a/modules/features/account/src/main/java/au/com/shiftyjelly/pocketcasts/account/onboarding/upgrade/OnboardingUpgradeFlow.kt +++ b/modules/features/account/src/main/java/au/com/shiftyjelly/pocketcasts/account/onboarding/upgrade/OnboardingUpgradeFlow.kt @@ -101,6 +101,15 @@ fun OnboardingUpgradeFlow( } } + LaunchedEffect(sheetState.currentValue) { + // We need to check if the screen was initialized with the expanded state. + // Otherwise, the sheet will never be shown since the initial state is Hidden. + // This will trigger this event, and onBackPressed will be called. + if (sheetState.currentValue == ModalBottomSheetValue.Hidden && startSelectPaymentFrequencyInExpandedState) { + onBackPressed() + } + } + BackHandler { if (sheetState.isVisible) { coroutineScope.launch { sheetState.hide() } From f26428b8c9fea411152ba952b0fd7bff943cef0e Mon Sep 17 00:00:00 2001 From: Eduarda Barbosa Date: Mon, 10 Feb 2025 14:47:46 -0300 Subject: [PATCH 2/2] update CHANGELOG.md --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index df7c4f78248..dd1214eb815 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,8 @@ ([#3546](https://github.com/Automattic/pocket-casts-android/pull/3546)) * Fix Media Notification artwork caching issues ([#3566](https://github.com/Automattic/pocket-casts-android/pull/3566)) + * Fix issue causing the Account Details page to become unresponsive after viewing an offer + ([#3574](https://github.com/Automattic/pocket-casts-android/pull/3574)) * Updates * Filter out chapters that do not belong in table of contents. See [the specification](https://github.com/Podcastindex-org/podcast-namespace/blob/main/chapters/jsonChapters.md) for more details. ([#3556](https://github.com/Automattic/pocket-casts-android/pull/3556))