-
Notifications
You must be signed in to change notification settings - Fork 84
Fix paywall tester so customer center doesn't close when changing to dark mode #2550
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -98,7 +98,7 @@ internal interface CustomerCenterViewModel { | |||
|
|||
// trigger state refresh | |||
fun refreshStateIfLocaleChanged() | |||
fun refreshStateIfColorsChanged(colorScheme: ColorScheme, isDark: Boolean) | |||
fun refreshStateIfColorsChanged(currentColorScheme: ColorScheme, isSystemInDarkTheme: Boolean) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this was just renames because I found them confusing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look good! I think there might have been an easier fix, but I'm ok keeping it like this!
@@ -50,21 +50,22 @@ fun AppInfoScreen( | |||
), | |||
) { | |||
var isDebugBottomSheetVisible by remember { mutableStateOf(false) } | |||
var isCustomerCenterVisible by remember { mutableStateOf(false) } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe we could have just used rememberSaveable
... But I'm ok to move the state to the View model :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh right! I overcomplicated it lol
Thank you!
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2550 +/- ##
=======================================
Coverage 78.26% 78.26%
=======================================
Files 291 291
Lines 10782 10782
Branches 1507 1507
=======================================
Hits 8439 8439
Misses 1691 1691
Partials 652 652 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
**This is an automatic release.** ## RevenueCat SDK ### 🐞 Bugfixes * Resubscribe if cancelled (#2487) via Cesar de la Vega (@vegaro) ### Virtual Currency #### 🐞 Bugfixes * Update VC Caching Log Message (#2552) via Will Taylor (@fire-at-will) ## RevenueCatUI SDK ### Customer Center #### 🐞 Bugfixes * Update design of No Active subscriptions screen in Customer Center (#2559) via Cesar de la Vega (@vegaro) ### 🔄 Other Changes * [AUTOMATIC][Paywalls V2] Updates paywall-preview-resources submodule (#2561) via RevenueCat Git Bot (@RCGitBot) * [AUTOMATIC][Paywalls V2] Updates paywall-preview-resources submodule (#2560) via RevenueCat Git Bot (@RCGitBot) * Bump danger from 9.5.1 to 9.5.3 (#2556) via dependabot[bot] (@dependabot[bot]) * Bump fastlane from 2.227.2 to 2.228.0 (#2557) via dependabot[bot] (@dependabot[bot]) * Bump fastlane-plugin-revenuecat_internal from `9a29f63` to `7d97553` (#2558) via dependabot[bot] (@dependabot[bot]) * [AUTOMATIC][Paywalls V2] Updates paywall-preview-resources submodule (#2555) via RevenueCat Git Bot (@RCGitBot) * Bump nokogiri from 1.18.8 to 1.18.9 (#2553) via dependabot[bot] (@dependabot[bot]) * [AUTOMATIC][Paywalls V2] Updates paywall-preview-resources submodule (#2551) via RevenueCat Git Bot (@RCGitBot) * Fix paywall tester so customer center doesn't close when changing to dark mode (#2550) via Cesar de la Vega (@vegaro) Co-authored-by: revenuecat-ops <ops@revenuecat.com>
…dark mode (#2550) The Customer Center was closing when switching between light and dark mode
The Customer Center was closing when switching between light and dark mode