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)) 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() }