Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/modules/main/application/main_screen_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ class MainScreenLogic {
}
}

Future<void> checkAndShowPrivacyNotice(Function showDialog) async {
Future<void> checkAndShowPrivacyNotice(Future<void> Function() showDialog) async {
final prefs = await SharedPreferences.getInstance();
final bool privacyNoticeShown = prefs.getBool('privacy_notice_shown') ?? false;
if (!privacyNoticeShown) {
showDialog();
return showDialog();
}
}

Expand Down
4 changes: 2 additions & 2 deletions lib/modules/main/presentation/screens/main_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ class _MainScreenState extends ConsumerState<MainScreen> {
_secretTapHandler.handleSecretTap(context);
}

void _showPrivacyNoticeDialog() {
PrivacyNoticeDialog.show(
Future<void> _showPrivacyNoticeDialog() {
return PrivacyNoticeDialog.show(
context,
() async {
if (ref.context.mounted) {
Expand Down