You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I made some features to the app (explicitly bookmarks for recordings).
I am noticing some issues with the app itself aside from the bookmarks features, this has nothing to do with what I added.
But, when starting a recording, and then deleting it (the X button on the left), the UI hangs for a bit then resumes. I noticed it has to do with DocumentsContract.deleteDocument. The same result when I delete my bookmarks file, or deleting recordings themselves from the player window
Is this just horrible SAF performance? Or something else? It happens on both my S9+ tablet and P7P running Android 11.
I've since moved all deletions to background threads, but its just so annoying how it takes so long when I can use regular File operations (before SAF) and delete such small files practically instantly if they are stored in /data/data/ directory. I might just move everything there instead of using the internal storage, and then switch back to regular file calls.
Maybe that can be an option to speed things up. Then only request SAF permission when wanting to share/export a recording.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I made some features to the app (explicitly bookmarks for recordings).
I am noticing some issues with the app itself aside from the bookmarks features, this has nothing to do with what I added.
But, when starting a recording, and then deleting it (the X button on the left), the UI hangs for a bit then resumes. I noticed it has to do with
DocumentsContract.deleteDocument. The same result when I delete my bookmarks file, or deleting recordings themselves from the player windowIs this just horrible SAF performance? Or something else? It happens on both my S9+ tablet and P7P running Android 11.
I've since moved all deletions to background threads, but its just so annoying how it takes so long when I can use regular File operations (before SAF) and delete such small files practically instantly if they are stored in /data/data/ directory. I might just move everything there instead of using the internal storage, and then switch back to regular file calls.
Maybe that can be an option to speed things up. Then only request SAF permission when wanting to share/export a recording.
Beta Was this translation helpful? Give feedback.
All reactions