#1097 fixed relaunch intent extras check

This commit is contained in:
Thibault Deckers 2024-07-25 19:40:17 +02:00
parent 39bb9251dc
commit 5498b5d4e5
2 changed files with 2 additions and 2 deletions

View file

@ -631,7 +631,7 @@ class _AvesAppState extends State<AvesApp> with WidgetsBindingObserver {
final shouldReset = _exitedMainByPop; final shouldReset = _exitedMainByPop;
_exitedMainByPop = false; _exitedMainByPop = false;
if (!shouldReset && (intentData ?? {}).isEmpty) { if (!shouldReset && (intentData ?? {}).values.whereNotNull().isEmpty) {
reportService.log('Relaunch'); reportService.log('Relaunch');
return; return;
} }

View file

@ -107,7 +107,7 @@ class _HomePageState extends State<HomePage> {
unawaited(appInventory.initAppNames()); unawaited(appInventory.initAppNames());
} }
if (intentData.isNotEmpty) { if (intentData.values.whereNotNull().isNotEmpty) {
await reportService.log('Intent data=$intentData'); await reportService.log('Intent data=$intentData');
switch (intentAction) { switch (intentAction) {
case IntentActions.view: case IntentActions.view: