Skip to content

Commit fcb6dca

Browse files
committed
ads: fix onDismiss not called when ads are disabled
1 parent 8127aa5 commit fcb6dca

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/src/services/ads_service.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ class AdsServiceImpl with AppLogger implements AdsService {
7272
Future<void> showInterstitialAd({VoidCallback? onDismiss}) async {
7373
if (!_showAds) {
7474
logDebug('Ads are disabled');
75+
onDismiss?.call();
7576
return;
7677
}
7778

0 commit comments

Comments
 (0)