TagSpaces is an offline, open source, document manager with tagging support
fix: android paths on locations
Ilian Sapundshievbcd80f22cdf6
diff --git a/app/components/dialogs/LocalForm.tsx b/app/components/dialogs/LocalForm.tsxindex 31952458b..416b7c3cf 100644--- a/app/components/dialogs/LocalForm.tsx+++ b/app/components/dialogs/LocalForm.tsx@@ -24,10 +24,12 @@ import Input from '@material-ui/core/Input';import InputLabel from '@material-ui/core/InputLabel';import IconButton from '@material-ui/core/IconButton';import FolderIcon from '@material-ui/icons/Folder';+import FormHelperText from '@material-ui/core/FormHelperText';import Grid from '@material-ui/core/Grid';import i18n from '-/services/i18n';import { extractDirectoryName } from '-/utils/paths';import PlatformIO from '-/services/platform-io';+import AppConfig from '-/config';interface Props {showAdvancedMode: boolean;@@ -101,6 +103,12 @@ const LocalForm = (props: Props) => {</InputAdornment>}/>+ {AppConfig.isCordovaAndroid && (+ <FormHelperText>+ Examples: sdcard/DCIM, sdcard/Downloads or /storage/899D-1617 for+ ext. sd-card+ </FormHelperText>+ )}</FormControl></Grid><Grid item xs={12}>diff --git a/app/services/cordova-io.ts b/app/services/cordova-io.tsindex d4e5fd737..af392d308 100644--- a/app/services/cordova-io.ts+++ b/app/services/cordova-io.ts@@ -1343,8 +1343,8 @@ export default class CordovaIO {// ["file:///storage/emulated/0/360/security", "file:///storage/emulated/0/360/security"]// fix https://trello.com/c/vV7D0kGf/500-tsn500-fix-folder-selector-in-create-edit-location-on-android-or-use-native-dialogdata[0] = data[0].replace(- 'content://org.tagspaces.mobileapp.provider/root/storage/emulated/0', //'file:///storage/emulated/0',- 'file:///sdcard'+ 'file:///storage/emulated/0', // 'content://org.tagspaces.mobileapp.provider/root/storage/emulated/0', 'file:///storage/emulated/0',+ 'sdcard');resolve(data);},