https://bugs.kde.org/show_bug.cgi?id=523933

Albert Vaca Cintora <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
      Latest Commit|                            |https://invent.kde.org/netw
                   |                            |ork/kdeconnect-android/-/co
                   |                            |mmit/622d80b19e71608e11a864
                   |                            |d3e7ab80831283839b
         Resolution|---                         |FIXED

--- Comment #2 from Albert Vaca Cintora <[email protected]> ---
Git commit 622d80b19e71608e11a864d3e7ab80831283839b by Albert Vaca Cintora, on
behalf of Masum Ali.
Committed on 14/10/2026 at 20:17.
Pushed by albertvaka into branch 'master'.

share: Catch DownloadManager exception and index received files in MediaStore

On Android 10+ (and especially Android 13+ devices),
DownloadManager.addCompletedDownload
throws an IllegalStateException/FileNotFoundException when passing filesystem
paths
under scoped storage restrictions. Because publishFile() was called inside the
receive loop without catching this exception, the entire transfer was falsely
marked
as failed with an 'Error receiving file' notification even though the file was
fully
received and written to storage.

Catch exceptions from DownloadManager.addCompletedDownload and log them as
warnings.
Additionally, index all received files with MediaStoreHelper.indexFile() so
modern
Android media scanners and download providers discover them properly.

M  +15   -9   
src/main/java/org/kde/kdeconnect/plugins/share/CompositeReceiveFileJob.kt

https://invent.kde.org/network/kdeconnect-android/-/commit/622d80b19e71608e11a864d3e7ab80831283839b

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to