Skip to content

Commit 7361b0c

Browse files
committed
Pause Interstitial and Rewarded ads when loadedOK
1 parent 110ff99 commit 7361b0c

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

app/src/main/java/org/metatrans/commons/ads/impl/flow/AdLoadFlow_Interstitial.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,16 @@ protected void retry() {
2828

2929

3030
@Override
31-
public void cleanCurrent() {
31+
protected void cleanCurrent() {
3232
getCurrentContainer().removeInterstitial(getAdID(), this);
3333
super.cleanCurrent();
3434
}
35+
36+
@Override
37+
public synchronized void loadOK() {
38+
39+
super.loadOK();
40+
41+
pause();
42+
}
3543
}

app/src/main/java/org/metatrans/commons/ads/impl/flow/AdLoadFlow_RewardedVideo.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,13 @@ public void cleanCurrent() {
3030
getCurrentContainer().removeRewardedVideo(getAdID(), this);
3131
super.cleanCurrent();
3232
}
33+
34+
35+
@Override
36+
public synchronized void loadOK() {
37+
38+
super.loadOK();
39+
40+
pause();
41+
}
3342
}

0 commit comments

Comments
 (0)