mozilla-b2g/gaia — pull request #19574 by jrburke (2014-05-23 02:17:19+00:00)
Title: Bug 1010701 - [Tarako][Email][LMK] Email gets killed when attach multiple files to a mail

If add attachment button is tapped before the previous attachment has fully been attached, show a toast with the message "One moment, still working on the previous attachment...", and then once the previous attachment is completed, the attachment activity is immediately triggered.

On a hamachi device, for a 380KB image (picture taken from phone camera), it took about 1.6 seconds for the toast to disappear. Factoring in the 600 ms delay used after attachment is complete, and noting that a 4MB file took around 4.7 seconds, a rough guide is about 1 second per MB.

In general, the experience seems fine. For most images like phone pictures, the time seeing the toast so short that by the time user finishes reading, the activity chooser is already up. I think it helps that the code closes the toast as soon as previous attachment is done, and that the next attachment activity automatically proceeds.