Fix managed Google Play product catalog result
This commit is contained in:
1 parent
f27e47d83a
commit
29c3848a22
4 files changed
+11
-8
No files matched your search
@@ -209,17 +209,16 @@ public sealed class AndroidPlayBillingService : Java.Lang.Object, IPlayBillingSe
|
||||
throw new InvalidOperationException(ToMessage(result.Result));
|
||||
}
|
||||
|
||||
var details = result.ProductDetailsList?.FirstOrDefault();
|
||||
// The .NET async wrapper copies the Java result into the managed
|
||||
// ProductDetails property; ProductDetailsList has no Java handle here.
|
||||
var details = result.ProductDetails?.FirstOrDefault();
|
||||
if (details is not null)
|
||||
{
|
||||
_lastCatalogFailure = null;
|
||||
return details;
|
||||
}
|
||||
|
||||
var unfetched = result.UnfetchedProductList?.FirstOrDefault();
|
||||
_lastCatalogFailure = unfetched is null
|
||||
? "Google Play ha restituito un catalogo vuoto per lme_pro. Verifica account Play Store, adesione al test e origine dell'installazione."
|
||||
: $"Google Play non ha caricato lme_pro (codice catalogo {unfetched.StatusCodeValue}).";
|
||||
_lastCatalogFailure = "Google Play ha restituito un catalogo vuoto per lme_pro. Verifica account Play Store, adesione al test e origine dell'installazione.";
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user