Skip to content

Commit

Permalink
Merge pull request #1888 from /issues/1812-adm-purchase-listener-on-u…
Browse files Browse the repository at this point in the history
…nsubscribe

Retrieve current ADM PurchasingListener assuming it returns a nullable.
  • Loading branch information
brismithers committed Nov 1, 2023
2 parents 1ec2723 + 390f1f0 commit ec3d03d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ internal class TrackAmazonPurchase(
if (!canTrack) return
try {
val curPurchasingListener =
listenerHandlerField!![listenerHandlerObject] as PurchasingListener
listenerHandlerField!!.get(listenerHandlerObject) as PurchasingListener?
if (curPurchasingListener !== osPurchasingListener) {
osPurchasingListener!!.orgPurchasingListener = curPurchasingListener
setListener()
Expand Down

0 comments on commit ec3d03d

Please sign in to comment.