diff --git a/lib/utils/background_push.dart b/lib/utils/background_push.dart index 5cbf2652..85d1049a 100644 --- a/lib/utils/background_push.dart +++ b/lib/utils/background_push.dart @@ -255,7 +255,7 @@ class BackgroundPush { } if (await store.getItemBool(SettingKeys.showNoGoogle, true)) { await loadLocale(); - AdaptivePageLayout.of(context).showSnackBar(SnackBar( + apl.currentState.showSnackBar(SnackBar( content: Text( l10n.noGoogleServicesWarning, )));