mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-09-19 08:12:14 +02:00
fix(backup): allow selecting SFLB archives for restore
This commit is contained in:
@@ -74,10 +74,10 @@ class _BackupRestorePageState extends ConsumerState<BackupRestorePage> {
|
||||
|
||||
BackupBundle? bundle;
|
||||
try {
|
||||
final picked = await FilePicker.pickFile(
|
||||
type: FileType.custom,
|
||||
allowedExtensions: ['json', BackupService.fileExtension],
|
||||
);
|
||||
// Android resolves custom extensions to MIME types. It recognizes JSON
|
||||
// but not SFLB, so mixing them hides our own backups. Validate contents
|
||||
// with BackupService after selection instead of filtering by extension.
|
||||
final picked = await FilePicker.pickFile(type: FileType.any);
|
||||
if (picked == null) return;
|
||||
final path = picked.path;
|
||||
bundle = path != null
|
||||
|
||||
Reference in New Issue
Block a user