fix(android): fixed .mdx/.mdd files not shown in file chooser on Android, closes #4124 (#4125)

This commit is contained in:
Huang Xin
2026-05-11 14:50:35 +08:00
committed by GitHub
parent 56d6aceb0d
commit 615dc82c17
@@ -45,7 +45,9 @@ const selectFileTauri = async (
appService: AppService,
_: (key: string) => string,
): Promise<string[]> => {
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)) || [];