Skip to content
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 memory leaks in example app #865

Merged
merged 2 commits into from Apr 11, 2019
Merged

Fix memory leaks in example app #865

merged 2 commits into from Apr 11, 2019

Conversation

mshafrir-stripe
Copy link
Collaborator

Summary

  • Create ActivitySourceCallback to help with memory
    handling
  • Refactor and clean-up classes in example app to fix
    memory leaks as identified by LeakCanary
  • Call CompositeSubscription#unsubscribe() in
    Activity#onDestroy() where missing

Motivation

ANDROID-349

Testing

Tested on example app

@mshafrir-stripe mshafrir-stripe changed the base branch from activity-payment-session-listener to master April 11, 2019 20:26
**Summary**
- Create `ActivitySourceCallback` to help with memory
  handling
- Refactor and clean-up classes in example app to fix
  memory leaks as identified by LeakCanary
- Call `CompositeSubscription#unsubscribe()` in
  `Activity#onDestroy()` where missing

**Motivation**
ANDROID-349

**Testing**
Ran example app
@mshafrir-stripe mshafrir-stripe merged commit ab91036 into master Apr 11, 2019
@mshafrir-stripe mshafrir-stripe deleted the stripe-callbacks branch April 11, 2019 20:45
@jemerick-stripe jemerick-stripe mentioned this pull request Apr 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants