From 5885b14ff934d6f7e8b3b52314eb06d437cb50bb Mon Sep 17 00:00:00 2001 From: "J. A. Messias" Date: Thu, 17 Oct 2024 10:56:40 -0300 Subject: [PATCH] =?UTF-8?q?fix:=20add=20cen=C3=A1rio=20n=C3=A3o=20coberto?= =?UTF-8?q?=20pelo=20processLocals?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/shared/services/localization/localization_service.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/shared/services/localization/localization_service.dart b/lib/shared/services/localization/localization_service.dart index b288273c..a4c95536 100644 --- a/lib/shared/services/localization/localization_service.dart +++ b/lib/shared/services/localization/localization_service.dart @@ -88,6 +88,7 @@ class LocalizationService { final bool isUnselected = StorageUtil().cliUUID.isEmpty && StorageUtil().cliName.isEmpty & StorageUtil().ownerUUID.isEmpty; final bool isSelected = StorageUtil().cliUUID.isNotEmpty && StorageUtil().cliName.isNotEmpty && isInactived; final bool isUnavailable = isPending && isUnselected && isUnique; + final bool isAvailable = StorageUtil().cliUUID.isEmpty && StorageUtil().cliName.isEmpty; @@ -125,7 +126,7 @@ class LocalizationService { return await processData(context); - } else if (isUnselected) { + } else if (isUnselected || isAvailable) { log('() => isUnselected'); return await selectLocal(context); } else if (isSelected) { @@ -133,6 +134,7 @@ class LocalizationService { return await processData(context); } else { log('() => else'); + await StorageUtil().ensureInitialization(); return await selectLocal(context); } } catch (e) {