mathisdt / trackworktime

Android app to track your work time via WiFi or location and categorize each recorded intervall by a predefined client/task and a free text.

Home Page:https://zephyrsoft.org/trackworktime

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

problem when changing backup target directory

mar565 opened this issue · comments

commented

I cant set up a local folder and I think there is an issue with how the app asks for storage access. Selecting the folder doesnt do anything beside requesting access again.
The option for storage access isnt available in the apps settings as shown in the Screenshot.

Screenshot_20230618-161744

Firstly, please make sure you have the latest version of the app (1.1.20). Then, if that is given, what is shown when you tap on the last entry in the menu (labeled "Select Data Directory")? Normally this should give a hint which directory is currently selected. (It's normal that the system permissions don't show anything storage-related, the app uses the old way of accessing the device storage.) Finally, if the app keeps asking for the directory, please send the logs to me on the same day as the error(s) occurred. (This is important, the "Send Logs" feature only sends the log file of the current day.) You also can send the logs to yourself first and redact anything you don't want to share, that's completely OK.

@mar565 Did you find out anything conclusive? I also use the latest GrapheneOS and have the same app permissions (no storage visible), but it works - the app happily writes its backups every day.

commented

Sorry for the late reply. I had to change phones. After some testing I couldnt reproduce the exact issue but found something related you migh can reproduce:
-fresh install, set directory & do a backup
-set a new directory & backup again -> Backup in old location ist overwritten
-delete old directory & backup again -> success message but backup ist nowhere to bei found.

Thanks for the bug report! I was able to identify the problem: When I first implemented the directory selection, I saved the target location in the running app. So it wasn't read again until after a complete app restart and effectively unchanged. Now the new backup target is used immediately after selecting it.

EDIT: This is only valid for the next published release which should be 1.1.21. The change is not released yet.