googleads-mobile-android-examples icon indicating copy to clipboard operation
googleads-mobile-android-examples copied to clipboard

This conditional statement doesn't make sense

Open nithinkolekar opened this issue 3 years ago • 0 comments

with updated code for play-services-ads:20.1.0

if (rewardedAd != null && !isLoading) {
      loadRewardedAd();
}

private void loadRewardedAd() {
if (rewardedAd == null) {
....

function loadRewardedAd() never gets called if rewardedAd is null and when called passing the condition it never executes the code inside them because first statement will fail.

nithinkolekar avatar May 21 '21 07:05 nithinkolekar