From c48b55e64076dae81f6dfd98aa11d3db37d86718 Mon Sep 17 00:00:00 2001 From: richard Date: Fri, 11 Oct 2024 10:52:58 +0200 Subject: [PATCH] fix: write audios json as string doubled --- lib/services/filesystem_service.dart | 43 ++++++++++++++++------------ 1 file changed, 24 insertions(+), 19 deletions(-) diff --git a/lib/services/filesystem_service.dart b/lib/services/filesystem_service.dart index cda9168..93b449c 100644 --- a/lib/services/filesystem_service.dart +++ b/lib/services/filesystem_service.dart @@ -16,6 +16,7 @@ class FileSystemService { Future init() async { _authorized = await _hasStoragePermission(); + if (_authorized) return; _authorized = await _requestStoragePermission(); @@ -63,33 +64,23 @@ class FileSystemService { } Future saveAudioList(List