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 authored and jinliu9508 committed Jan 31, 2024
2 parents 6c4faa5 + 4c47bbc commit 2243141
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 2243141

Please sign in to comment.