Skip to content

Commit

Permalink
set statee
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Malandruccolo committed May 6, 2024
1 parent 5736da9 commit 61d56d6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion samples/admob/rewarded_interstitial_example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,9 @@ class RewardedInterstitialExampleState

var canRequestAds = await _consentManager.canRequestAds();
if (canRequestAds) {
_isMobileAdsInitializeCalled = true;
setState(() {
_isMobileAdsInitializeCalled = true;
});

// Initialize the Mobile Ads SDK.
MobileAds.instance.initialize();
Expand Down

0 comments on commit 61d56d6

Please sign in to comment.