minor fixes

This commit is contained in:
Thibault Deckers 2023-02-17 15:15:50 +01:00
parent 21f1fffb9c
commit d319794a50
4 changed files with 12 additions and 225 deletions

View file

@ -23,6 +23,7 @@ All notable changes to this project will be documented in this file.
- SD card access grant on Android Lollipop - SD card access grant on Android Lollipop
- copying to SD card in some cases - copying to SD card in some cases
- sharing SD card files referred by `file` URI
## <a id="v1.7.10"></a>[v1.7.10] - 2023-01-18 ## <a id="v1.7.10"></a>[v1.7.10] - 2023-01-18

View file

@ -139,8 +139,8 @@ class ImageOpStreamHandler(private val activity: Activity, private val arguments
var destinationDir = arguments["destinationPath"] as String? var destinationDir = arguments["destinationPath"] as String?
val mimeType = arguments["mimeType"] as String? val mimeType = arguments["mimeType"] as String?
val width = arguments["width"] as Int? val width = (arguments["width"] as Number?)?.toInt()
val height = arguments["height"] as Int? val height = (arguments["height"] as Number?)?.toInt()
val nameConflictStrategy = NameConflictStrategy.get(arguments["nameConflictStrategy"] as String?) val nameConflictStrategy = NameConflictStrategy.get(arguments["nameConflictStrategy"] as String?)
if (destinationDir == null || mimeType == null || width == null || height == null || nameConflictStrategy == null) { if (destinationDir == null || mimeType == null || width == null || height == null || nameConflictStrategy == null) {
error("export-args", "missing arguments", null) error("export-args", "missing arguments", null)

View file

@ -1,7 +1,15 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<paths> <paths>
<!-- `external-path` only covers files on regular device storage -->
<external-path <external-path
name="external_files" name="external"
path="." />
<!-- `root-path` is necessary to cover files on removable storage -->
<!-- cf https://iditect.com/article/fileprovider-for-android-get-content-uri-through-fileprovider.html -->
<!--suppress AndroidElementNotAllowed -->
<root-path
name="root"
path="." /> path="." />
<!-- embedded images & other media that are exported for viewing and sharing --> <!-- embedded images & other media that are exported for viewing and sharing -->

View file

@ -661,29 +661,6 @@
"settingsDisablingBinWarningDialogMessage" "settingsDisablingBinWarningDialogMessage"
], ],
"es": [
"chipActionLock",
"chipActionCreateVault",
"chipActionConfigureVault",
"albumTierVaults",
"vaultLockTypePin",
"vaultLockTypePassword",
"newVaultWarningDialogMessage",
"newVaultDialogTitle",
"configureVaultDialogTitle",
"vaultDialogLockModeWhenScreenOff",
"vaultDialogLockTypeLabel",
"pinDialogEnter",
"pinDialogConfirm",
"passwordDialogEnter",
"passwordDialogConfirm",
"authenticateToConfigureVault",
"authenticateToUnlockVault",
"vaultBinUsageDialogMessage",
"settingsConfirmationVaultDataLoss",
"settingsDisablingBinWarningDialogMessage"
],
"eu": [ "eu": [
"chipActionLock", "chipActionLock",
"chipActionCreateVault", "chipActionCreateVault",
@ -1168,29 +1145,6 @@
"filePickerUseThisFolder" "filePickerUseThisFolder"
], ],
"fr": [
"chipActionLock",
"chipActionCreateVault",
"chipActionConfigureVault",
"albumTierVaults",
"vaultLockTypePin",
"vaultLockTypePassword",
"newVaultWarningDialogMessage",
"newVaultDialogTitle",
"configureVaultDialogTitle",
"vaultDialogLockModeWhenScreenOff",
"vaultDialogLockTypeLabel",
"pinDialogEnter",
"pinDialogConfirm",
"passwordDialogEnter",
"passwordDialogConfirm",
"authenticateToConfigureVault",
"authenticateToUnlockVault",
"vaultBinUsageDialogMessage",
"settingsConfirmationVaultDataLoss",
"settingsDisablingBinWarningDialogMessage"
],
"gl": [ "gl": [
"columnCount", "columnCount",
"chipActionLock", "chipActionLock",
@ -2392,29 +2346,6 @@
"settingsWidgetDisplayedItem" "settingsWidgetDisplayedItem"
], ],
"ko": [
"chipActionLock",
"chipActionCreateVault",
"chipActionConfigureVault",
"albumTierVaults",
"vaultLockTypePin",
"vaultLockTypePassword",
"newVaultWarningDialogMessage",
"newVaultDialogTitle",
"configureVaultDialogTitle",
"vaultDialogLockModeWhenScreenOff",
"vaultDialogLockTypeLabel",
"pinDialogEnter",
"pinDialogConfirm",
"passwordDialogEnter",
"passwordDialogConfirm",
"authenticateToConfigureVault",
"authenticateToUnlockVault",
"vaultBinUsageDialogMessage",
"settingsConfirmationVaultDataLoss",
"settingsDisablingBinWarningDialogMessage"
],
"lt": [ "lt": [
"columnCount", "columnCount",
"chipActionLock", "chipActionLock",
@ -2934,146 +2865,19 @@
"chipActionLock", "chipActionLock",
"chipActionCreateVault", "chipActionCreateVault",
"chipActionConfigureVault", "chipActionConfigureVault",
"entryActionOpenMap",
"entryActionRotateScreen",
"entryActionAddFavourite",
"entryActionRemoveFavourite",
"videoActionCaptureFrame",
"videoActionMute",
"videoActionUnmute",
"videoActionPause",
"videoActionPlay",
"videoActionReplay10",
"videoActionSkip10",
"videoActionSelectStreams",
"videoActionSetSpeed",
"viewerActionSettings",
"slideshowActionResume",
"slideshowActionShowInCollection",
"entryInfoActionEditDate",
"entryInfoActionEditLocation",
"entryInfoActionEditTitleDescription",
"entryInfoActionEditRating",
"entryInfoActionEditTags",
"entryInfoActionRemoveMetadata",
"entryInfoActionExportMetadata",
"entryInfoActionRemoveLocation",
"filterAspectRatioLandscapeLabel",
"filterAspectRatioPortraitLabel",
"filterBinLabel",
"filterFavouriteLabel",
"filterNoDateLabel",
"filterNoAddressLabel",
"filterLocatedLabel", "filterLocatedLabel",
"filterNoLocationLabel", "filterNoLocationLabel",
"filterNoRatingLabel",
"filterTaggedLabel",
"filterNoTagLabel",
"filterNoTitleLabel",
"filterOnThisDayLabel",
"filterRecentlyAddedLabel",
"filterRatingRejectedLabel",
"filterTypeAnimatedLabel",
"filterTypeMotionPhotoLabel",
"filterTypePanoramaLabel",
"filterTypeRawLabel",
"filterTypeSphericalVideoLabel",
"filterTypeGeotiffLabel",
"filterMimeImageLabel",
"filterMimeVideoLabel",
"accessibilityAnimationsRemove",
"accessibilityAnimationsKeep",
"albumTierNew",
"albumTierPinned",
"albumTierSpecial",
"albumTierApps",
"albumTierVaults", "albumTierVaults",
"albumTierRegular",
"coordinateFormatDms",
"coordinateFormatDecimal",
"coordinateDms", "coordinateDms",
"coordinateDmsNorth",
"coordinateDmsSouth",
"coordinateDmsEast",
"coordinateDmsWest",
"displayRefreshRatePreferHighest",
"displayRefreshRatePreferLowest",
"keepScreenOnNever",
"keepScreenOnVideoPlayback",
"keepScreenOnViewerOnly",
"keepScreenOnAlways",
"mapStyleGoogleNormal",
"mapStyleGoogleHybrid",
"mapStyleGoogleTerrain",
"mapStyleHuaweiNormal",
"mapStyleHuaweiTerrain",
"mapStyleOsmHot",
"mapStyleStamenToner",
"mapStyleStamenWatercolor",
"nameConflictStrategyRename",
"nameConflictStrategyReplace",
"nameConflictStrategySkip",
"subtitlePositionTop",
"subtitlePositionBottom",
"themeBrightnessLight",
"themeBrightnessDark",
"themeBrightnessBlack",
"unitSystemMetric",
"unitSystemImperial",
"vaultLockTypePin", "vaultLockTypePin",
"vaultLockTypePassword", "vaultLockTypePassword",
"videoControlsPlay",
"videoControlsPlaySeek",
"videoControlsPlayOutside",
"videoControlsNone",
"videoLoopModeNever",
"videoLoopModeShortOnly",
"videoLoopModeAlways",
"videoPlaybackSkip",
"videoPlaybackMuted",
"videoPlaybackWithSound",
"viewerTransitionSlide",
"viewerTransitionParallax",
"viewerTransitionFade",
"viewerTransitionZoomIn",
"viewerTransitionNone",
"wallpaperTargetHome",
"wallpaperTargetLock",
"wallpaperTargetHomeLock",
"widgetDisplayedItemRandom",
"widgetDisplayedItemMostRecent",
"widgetOpenPageHome",
"widgetOpenPageCollection",
"widgetOpenPageViewer",
"storageVolumeDescriptionFallbackPrimary",
"storageVolumeDescriptionFallbackNonPrimary",
"rootDirectoryDescription",
"otherDirectoryDescription", "otherDirectoryDescription",
"storageAccessDialogMessage", "storageAccessDialogMessage",
"restrictedAccessDialogMessage", "restrictedAccessDialogMessage",
"notEnoughSpaceDialogMessage", "notEnoughSpaceDialogMessage",
"missingSystemFilePickerDialogMessage",
"unsupportedTypeDialogMessage", "unsupportedTypeDialogMessage",
"nameConflictDialogSingleSourceMessage",
"nameConflictDialogMultipleSourceMessage",
"addShortcutDialogLabel",
"addShortcutButtonLabel",
"noMatchingAppDialogMessage",
"binEntriesConfirmationDialogMessage", "binEntriesConfirmationDialogMessage",
"deleteEntriesConfirmationDialogMessage", "deleteEntriesConfirmationDialogMessage",
"moveUndatedConfirmationDialogMessage",
"moveUndatedConfirmationDialogSetDate",
"videoResumeDialogMessage",
"videoStartOverButtonLabel",
"videoResumeButtonLabel",
"setCoverDialogLatest",
"setCoverDialogAuto",
"setCoverDialogCustom",
"hideFilterConfirmationDialogMessage",
"newAlbumDialogTitle",
"newAlbumDialogNameLabel",
"newAlbumDialogNameLabelAlreadyExistsHelper",
"newAlbumDialogStorageLabel",
"newVaultWarningDialogMessage", "newVaultWarningDialogMessage",
"newVaultDialogTitle", "newVaultDialogTitle",
"configureVaultDialogTitle", "configureVaultDialogTitle",
@ -3086,34 +2890,8 @@
"authenticateToConfigureVault", "authenticateToConfigureVault",
"authenticateToUnlockVault", "authenticateToUnlockVault",
"vaultBinUsageDialogMessage", "vaultBinUsageDialogMessage",
"renameAlbumDialogLabel",
"renameAlbumDialogLabelAlreadyExistsHelper",
"renameEntrySetPageTitle",
"renameEntrySetPagePatternFieldLabel",
"renameEntrySetPageInsertTooltip",
"renameEntrySetPagePreviewSectionTitle",
"renameProcessorCounter",
"renameProcessorName",
"deleteSingleAlbumConfirmationDialogMessage", "deleteSingleAlbumConfirmationDialogMessage",
"deleteMultiAlbumConfirmationDialogMessage", "deleteMultiAlbumConfirmationDialogMessage",
"exportEntryDialogFormat",
"exportEntryDialogWidth",
"exportEntryDialogHeight",
"renameEntryDialogLabel",
"editEntryDialogCopyFromItem",
"editEntryDialogTargetFieldsHeader",
"editEntryDateDialogTitle",
"editEntryDateDialogSetCustom",
"editEntryDateDialogCopyField",
"editEntryDateDialogExtractFromTitle",
"editEntryDateDialogShift",
"editEntryDateDialogSourceFileModifiedDate",
"durationDialogHours",
"durationDialogMinutes",
"durationDialogSeconds",
"editEntryLocationDialogTitle",
"editEntryLocationDialogSetCustom",
"editEntryLocationDialogChooseOnMap",
"editEntryLocationDialogLatitude", "editEntryLocationDialogLatitude",
"editEntryLocationDialogLongitude", "editEntryLocationDialogLongitude",
"locationPickerUseThisLocationButton", "locationPickerUseThisLocationButton",