Skip to content

Commit

Permalink
fix : interload issue
Browse files Browse the repository at this point in the history
  • Loading branch information
FenilInfy0m authored and FenilInfy0m committed Dec 19, 2022
1 parent 89ae4d1 commit 0c3ae96
Showing 1 changed file with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,15 @@ public void run() {
}
}, myPref.getAdsTime() * 1000);

if (InfyOmAds.isConnectingToInternet(mContext)) {
listener.onAdClose(true);
} else {
listener.onAdClose(true);
Toast.makeText(mContext, "Please check your internet connection", Toast.LENGTH_SHORT).show();
if (isFailed) {
if (InfyOmAds.isConnectingToInternet(mContext)) {
listener.onAdClose(true);
} else {
listener.onAdClose(true);
Toast.makeText(mContext, "Please check your internet connection", Toast.LENGTH_SHORT).show();
}
}

}

@Override
Expand Down Expand Up @@ -156,10 +159,11 @@ public void onAdShowedFullScreenContent() {
if (dialog != null && dialog.isShowing()) {
dialog.dismiss();
}
super.onAdShowedFullScreenContent();
Constants.isAdShowing = true;
dismissCount();
load_interstitial(false);
super.onAdShowedFullScreenContent();

}

@Override
Expand Down

0 comments on commit 0c3ae96

Please sign in to comment.