-
-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit fixes bugs surrounding tcsPurchase in the Andorid InAppBillingImplementation class. 1. HandleActivityResult uses null-conditional operator to access tcsPurcahse to avoid NullReferenceException. 2. HandleActivityResult now invokes TrySetException rather than SetException to avoid InvalidOperationException. 3. ConnectAsync() now invokes TryCancel() and sets tcsPurcahse to null. This was done to prevent tcsPurcahse from being stuck in a WaitingForActivation TaskStatus state when the activity is destroyed in recreated while the purchase modal is being presented to the user. This was causing all future purchase attempts to return null when invoking PurchaseAsync().
- Loading branch information
Showing
1 changed file
with
34 additions
and
32 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