googleads-mobile-android-examples
googleads-mobile-android-examples copied to clipboard
This conditional statement doesn't make sense
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.