Closed Palatis closed 8 months ago
That's a good idea, I just need to check if Android SAF provides this info and if it's reliable (some SAF implementations are very bad...). Anyway, even if it's not, user could fallback to manual refresh as currently does.
yes i also refresh every time i open it. btw thanks for developing this great app
That's a good idea, I just need to check if Android SAF provides this info and if it's reliable
It seems to work and it's sufficiently fast, at least on my side.
I've just released v0.0.21 with this feature. When the app is resumed (i.e. getting back from another app or a call) it chacks recordings directory last modified time and, if newer than last update time, it automatically refreshes.
PS: I only wonder if it works correctly when getting back after a call, since BCR could require some time to close the recording and copy the audio file to recordings dir. BCR always records in a local app file then move it to final dir...
on last version, the list is still not refreshed on app open
I think it's due to this:
BCR could require some time to close the recording and copy the audio file to recordings dir
I'd like to confirm that's the cause, so these are my questions:
Was BCR-GUI reopened immediately after call termination? If so, and the new recording is not in the list, please close/pause it (i.e. by pressing Home button) and restore it after a few seconds. Do not force list refresh.
Was BCR-GUI manually opened after call termination? If so, have you reopened it before or after the BCR "call-terminated" notifcation is shown? If before, the could you please wait after the notification appears, then open BCR-GUI and confirm the list is automatically updated?
NOTE: this issue could be harder to fix because, if the cause is a "timing issue", then I should "delay" the current update that happens at application resume, but... how long should the delay be? Too short could be useless, while too long could update the list while user interacts with it 🤔
for example today when i opened the app i had last recording since 20th dec when i last pulled down to refresh. afterwards i refreshed manually and got the latest calls with the last one being from 3 hours ago (not opened immediately after call)
Just published version 0.0.25 with an improved change detection. It should now work correctly and update the list (only) when needed.
Feel free to reopen this if any other issue arise 😉
I myself almost always have to refresh the list manually, I guess majority of the user have to do this, too. Why not just make it automated?
May also check directory mtime (modification time) to determine if refresh is required or not.