-
Notifications
You must be signed in to change notification settings - Fork 662
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent AddSourceActivity's SourceCallback from being GCed (#791)
**Summary** `Stripe#CreateSourceTask` holds a `WeakReference` to the `SourceCallback`. This reference was being garbage collected, causing callback (either onSuccess or onError) to never happen. Making the SourceCallback an instance variable seems to fix this issue. **Motivation** Because the callback was never happening, the user would be stuck on the "Add a Card" screen. **Testing** Tested manually on various API levels.
- Loading branch information
1 parent
df83cf2
commit 2b74328
Showing
3 changed files
with
42 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters