Hi guys,
I'm investigating the code for rewarded ads load in RewardedVideoExample and I can't get the idea of line 105:
if (rewardedAd != null && !isLoading && googleMobileAdsConsentManager.canRequestAds()) {
loadRewardedAd();
}
And rewardedAd != null check doesn't make sense to me considering that loadRewardedAd() method then checks it for null:
private void loadRewardedAd() {
if (rewardedAd == null) {
// load logic here
}
}
But I suppose this check was added for some reason and I would really appreciate it if someone explain it.
Thanks!