Google In-App Billing causing Exception

后端 未结 3 446
生来不讨喜
生来不讨喜 2021-01-06 18:06

In one of my Android apps, I\'m trying to implement a simple grab of the inventory from Google\'s In-App billing, but it keeps giving me errors at the line of



        
3条回答
  •  不要未来只要你来
    2021-01-06 18:34

    Simply make the checkNotDisposed() method synchronised and the problem goes away. This is because it is sometimes called in a separate thread and does not always have the latest value of mDisposed, which may have been set in the main thread:

    private synchronized void checkNotDisposed()
    

提交回复
热议问题