Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Map picker workaround for private folder #440

Merged
merged 1 commit into from
Jun 12, 2023

Conversation

moving-bits
Copy link
Member

Description

Since more recent versions of Android WhereYouGo can no longer access public folders to load Mapsforge map files.
WhereYouGo can still read its private folder in Android/data/menion.whereyougo.com/files, but the internal file picker cannot reach that folder.

This PR allows resetting the starting point for the internal file picker to either "root" (as it is currently) or "private" folder. It also resets the internally stored last map file name, so that WhereYouGo resorts to the (reset) default folder, effectively allowing the user to select map files stored in WhereYouGo private folder.

Users are able to put map files into that private folder by connecting their mobile to a PC and transferring the map file from there to the mentioned private folder.

Additional context

new preferences confirmation select map from private folder
image image image

@moving-bits moving-bits self-assigned this May 21, 2023
@moving-bits moving-bits merged commit f1d6f1c into cgeo:master Jun 12, 2023
2 checks passed
@moving-bits moving-bits deleted the resetDefaultFolder branch June 12, 2023 18:21
@Lineflyer
Copy link
Member

@moving-bits Can we do something similar for the WIG-folder?

@moving-bits
Copy link
Member Author

@moving-bits Can we do something similar for the WIG-folder?

For cartridges, you can go to settings => global => Whereigo folder and select "default". Then WhereYouGo will find all cartridges downloaded by itself after that.

The "trick" for maps will not help with storing maps in a user-created folder, same goes for cartridges. They will not be visible to WhereYouGo without SAF, when using more recent Android versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants