| Summary: | filetransfer: shared non-media files get timestamp as name | ||
|---|---|---|---|
| Product: | [Applications] kdeconnect | Reporter: | Mauro Panzeri <damonhill82> |
| Component: | android-application | Assignee: | Albert Vaca Cintora <albertvaka> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Android | ||
| OS: | Android 4.x | ||
| Latest Commit: | http://commits.kde.org/kdeconnect-android/e459d792d01268ab6889fc584cac0520ef78e0e8 | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
| Attachments: | Here's a patch to manage filename and size when the scheme of the uri is "file://" | ||
|
Description
Mauro Panzeri
2013-10-06 00:46:41 UTC
The problem resides in the ShareToReceiver.queuedSendUriList method. When you share a file from a file-manager, the uri you get is "file://...", but the managedQuery function expects to query the media content provider, so managedQuery will return a null cursor. Here's a patch to manage filename and size when the scheme of the uri is "file://" Created attachment 82682 [details]
Here's a patch to manage filename and size when the scheme of the uri is "file://"
Git commit e459d792d01268ab6889fc584cac0520ef78e0e8 by Albert Vaca, on behalf of Mauro Panzeri. Committed on 14/10/2013 at 16:32. Pushed by albertvaka into branch 'master'. "Share to" now retrieves filename for file:// uris too Querying the ContentProvider only works for content://... uris but when you share a file from a file-manager, the uri you get has the form file://... and ContentProvider returns a null cursor. REVIEW: 113202 M +47 -27 src/main/java/org/kde/kdeconnect/UserInterface/ShareToReceiver.java http://commits.kde.org/kdeconnect-android/e459d792d01268ab6889fc584cac0520ef78e0e8 |