From 615dc82c175f13fc7e6c33cc522aaad6060b6936 Mon Sep 17 00:00:00 2001 From: Huang Xin Date: Mon, 11 May 2026 14:50:35 +0800 Subject: [PATCH] fix(android): fixed .mdx/.mdd files not shown in file chooser on Android, closes #4124 (#4125) --- apps/readest-app/src/hooks/useFileSelector.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/readest-app/src/hooks/useFileSelector.ts b/apps/readest-app/src/hooks/useFileSelector.ts index 5f8e8143..b62a06f6 100644 --- a/apps/readest-app/src/hooks/useFileSelector.ts +++ b/apps/readest-app/src/hooks/useFileSelector.ts @@ -45,7 +45,9 @@ const selectFileTauri = async ( appService: AppService, _: (key: string) => string, ): Promise => { - const noFilter = appService?.isIOSApp || (appService?.isAndroidApp && options.type === 'books'); + const noFilter = + appService?.isIOSApp || + (appService?.isAndroidApp && (options.type === 'books' || options.type === 'dictionaries')); const exts = noFilter ? [] : options.extensions || []; const title = options.dialogTitle || _('Select Files'); let files = (await appService?.selectFiles(_(title), exts)) || [];