use correct call

This commit is contained in:
Phillip Thelen 2023-01-24 13:21:02 +01:00
parent d269484cc9
commit 8d62947595

View file

@ -145,8 +145,8 @@ class SubscriptionFragment : BaseFragment<FragmentSubscriptionBinding>() {
component.inject(this)
}
fun loadInventory() {
CoroutineScope(Dispatchers.IO).launch(ExceptionHandler.coroutine()) {
private fun loadInventory() {
CoroutineScope(Dispatchers.IO).launchCatching {
val subscriptions = purchaseHandler.getAllSubscriptionProducts()
skus = subscriptions
withContext(Dispatchers.Main) {