Downloaded image should show in Android Gallery immediately

VERIFIED FIXED

Status

defect
P2
normal
VERIFIED FIXED
8 years ago
4 years ago

People

(Reporter: tarend, Assigned: wesj)

Tracking

(Blocks 1 bug)

Trunk
ARM
Android
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

Reporter

Description

8 years ago
(1) Go to any web page that shows a picture
(2) long tap and "save image"

Result: Image is available in the browser's "Downloads" section, but NOT in the Android Gallery. "Open" shows a view of the image that does not allow any sharing activity. It only shows up in the Android Gallery (in folder "download") after a Media Scan, which happens at boot time or after unmounting USB.

Expected: show image in Android Gallery instantaneously.
Assignee

Updated

8 years ago
Assignee: nobody → wjohnston
Assignee

Comment 1

8 years ago
Posted patch WIP PatchSplinter Review
This works well, but I am not sure I am handling all of the garbage collection correctly.

It also doesn't remove elements from the Gallery when they are deleted from the DownloadManager (they show up as thumbnails, but show blank pictures). So far the only solution I've seen for that is to "fake" mounting the directory:

http://stackoverflow.com/questions/4646913/android-how-to-use-mediascannerconnection-scanfile
Attachment #523473 - Flags: review?(blassey.bugs)
Attachment #523473 - Flags: review?(blassey.bugs) → review+
Assignee

Comment 2

8 years ago
http://hg.mozilla.org/mozilla-central/rev/760c50e2239a
Status: NEW → RESOLVED
Last Resolved: 8 years ago
Resolution: --- → FIXED

Comment 3

8 years ago
VERIFIED FIXED on: 

Build Id: Mozilla /5.0 (Android;Linux armv7l;rv:2.2a1pre) Gecko/20110412 Firefox/4.2a1pre Fennec /4.1a1pre 

Device: HTC Desire Z (Android 2.2)
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.