From 5498b5d4e571b4e72c9ad218c23d7ab2361a21f6 Mon Sep 17 00:00:00 2001 From: Thibault Deckers Date: Thu, 25 Jul 2024 19:40:17 +0200 Subject: [PATCH] #1097 fixed relaunch intent extras check --- lib/widgets/aves_app.dart | 2 +- lib/widgets/home_page.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/widgets/aves_app.dart b/lib/widgets/aves_app.dart index f279c2984..055674ecb 100644 --- a/lib/widgets/aves_app.dart +++ b/lib/widgets/aves_app.dart @@ -631,7 +631,7 @@ class _AvesAppState extends State with WidgetsBindingObserver { final shouldReset = _exitedMainByPop; _exitedMainByPop = false; - if (!shouldReset && (intentData ?? {}).isEmpty) { + if (!shouldReset && (intentData ?? {}).values.whereNotNull().isEmpty) { reportService.log('Relaunch'); return; } diff --git a/lib/widgets/home_page.dart b/lib/widgets/home_page.dart index 5ec822745..f2d537a33 100644 --- a/lib/widgets/home_page.dart +++ b/lib/widgets/home_page.dart @@ -107,7 +107,7 @@ class _HomePageState extends State { unawaited(appInventory.initAppNames()); } - if (intentData.isNotEmpty) { + if (intentData.values.whereNotNull().isNotEmpty) { await reportService.log('Intent data=$intentData'); switch (intentAction) { case IntentActions.view: