protected async override void OnResume() { base.OnResume(); // If we haven't already loaded the products from the store, do it now if (listView.Adapter == null && !isFetching) { isFetching = true; ShowLoadingDialog(Resource.String.loading_data); try { IEnumerable <Product> products; if (collectionId != null) { products = await SampleApplication.GetProductsAsync(collectionId); } else { products = await SampleApplication.GetAllProductsAsync(); } DismissLoadingDialog(); OnFetchedProducts(products.ToList()); } catch (ShopifyException ex) { OnError(ex.Error); } isFetching = false; } }