WIP: hot fix localization_service

This commit is contained in:
J. A. Messias 2024-10-17 13:18:29 -03:00
parent 0ce19d81b7
commit 977e812827
1 changed files with 8 additions and 16 deletions

View File

@ -79,24 +79,16 @@ class LocalizationService {
} else if (isSelected) { } else if (isSelected) {
return await processData(context); return await processData(context);
} else if (isAvailable) { } else if (isAvailable) {
await StorageUtil().ensureInitialization();
return await processData(context); return await processData(context);
} else { } else {
if (!isUnique && !isActive) { await StorageUtil().ensureInitialization();
log('() => not unique and not active'); if (!isUnique && !isActive) log('() => not unique and not active');
return false; else if (!isUnique && isInactived) log('() => not unique and inactived');
} else if (!isUnique && isInactived) { else if (!isUnique && isPending) log('() => not unique and pending');
log('() => not unique and inactived'); else if (!isUnique && isBlocked) log('() => not unique and blocked');
return false; else log('() => else');
} else if (!isUnique && isPending) { return await selectLocal(context);
log('() => not unique and pending');
return false;
} else if (!isUnique && isBlocked) {
log('() => not unique and blocked');
return false;
} else {
await StorageUtil().ensureInitialization();
return await selectLocal(context);
}
} }
} catch (e, s) { } catch (e, s) {
log('() => stack: $s'); log('() => stack: $s');