-
Notifications
You must be signed in to change notification settings - Fork 628
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
Fix Samsung memory leak in screenshot tests #8589
base: master
Are you sure you want to change the base?
Conversation
b955740
to
bf5b162
Compare
Diffuse output:
APK
|
c102045
to
e943d0d
Compare
@@ -7,10 +7,8 @@ import com.stripe.android.paymentsheet.PaymentSheet | |||
|
|||
internal object AppearanceStore { | |||
var state by mutableStateOf(PaymentSheet.Appearance()) | |||
var forceDarkMode by 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.
Can remove this workaround since we’re no longer relying on an activity-scoped dark mode.
e943d0d
to
c85fa1f
Compare
c85fa1f
to
9233686
Compare
// that happen when you switch modes. | ||
pressBack() | ||
waitForPlaygroundActivity() | ||
enableDarkMode(enabled = 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.
Nice!
"Canceled" | ||
// We don't show the toast in tests so that we don't | ||
// pollute the screenshots with those overlays. | ||
"Canceled".takeUnless { runningInTest } |
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.
Should we log it instead then?
Summary
This pull request fixes a memory leak in
TestPaymentSheetScreenshots
that’s happening on some Samsung devices.Motivation
Testing
Screenshots
Changelog