Open therealchrif opened 4 years ago
adLoader.isLoading() returns TRUE if no Internet. How to solve it? Remove this check?
`
public void onAdFailedToLoad(int errorCode) {
// A native ad failed to load, check if the ad loader has finished loading and if so, insert the ads into the list.
Log.e("MainActivity", "The previous native ad failed to load. Attempting to load another.");
if (!adLoader.isLoading()) {
insertAdsInMenuItems();
}
}`
The loading fragment keeps loading when no Internet! Infinite loading