From fb3df292d3813783aaa9949759b248c7eb9d24f3 Mon Sep 17 00:00:00 2001 From: Justin Malandruccolo Date: Tue, 9 Jul 2024 13:14:45 -0500 Subject: [PATCH] pause/resume --- samples/admob/rewarded_example/lib/main.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/samples/admob/rewarded_example/lib/main.dart b/samples/admob/rewarded_example/lib/main.dart index 0133413df..01c667d9a 100644 --- a/samples/admob/rewarded_example/lib/main.dart +++ b/samples/admob/rewarded_example/lib/main.dart @@ -180,13 +180,14 @@ class RewardedExampleState extends State { )) .toList(), onSelected: (item) { + _pauseGame(); switch (item.value) { case 0: MobileAds.instance.openAdInspector((error) { // Error will be non-null if ad inspector closed due to an error. + _resumeGame(); }); case 1: - _pauseGame(); _consentManager.showPrivacyOptionsForm((formError) { if (formError != null) { debugPrint("${formError.errorCode}: ${formError.message}");