Go to file
Martin Hibdon f484751e06 Make draft attachments work correctly
b/10968838
The main problem here is that Ui Attachment was always using
a content Uri that was generated using the attachment's account
Id and rowId. This works correctly for attachments in messages
we have received, but it does not work for drafts: Draft attachments
are not stored in the normal place, rather, they are stored in
the cache directory. There is an additional column in the
Attachment table, called cachedFile, which is not replicated in the
Ui attachment. That's okay though, if we have a cachedFile, then
when we are populating a Ui Attachment, we should just use that
for content Uri.
Also, I discoverd that for draft attachments, we were not correctly
setting the account key. That didn't turn out to be the problem,
but I'm fixing it anyway because it will cause problems later on.

Change-Id: I0143ba824f3a5bfcd77f32828931b94d6977626f
2013-09-30 15:08:45 -07:00
assets Remove empty.html, which isn't used any more. 2010-12-22 11:59:31 -08:00
emailcommon Fix account matching at initial screen to match against email address 2013-09-26 13:41:09 -07:00
emailsync Remove some warnings 2013-08-01 22:14:01 -07:00
res Merge "Move xxhdpi icons to Email directory." into jb-ub-mail-ur10 2013-09-26 21:04:08 +00:00
src/com Make draft attachments work correctly 2013-09-30 15:08:45 -07:00
tests Moved some stuff from Email to Unified. 2013-08-29 17:41:26 -07:00
.classpath
.project
Android.mk Use support lib gridlayout. 2013-08-27 17:40:28 -07:00
AndroidManifest.xml Increment Email version. 2013-09-26 18:29:54 -07:00
CleanSpec.mk Remove unused resource directories 2013-09-06 10:23:02 -07:00
MODULE_LICENSE_APACHE2
NOTICE
proguard.flags Remove nonexistant classes and update existing ones 2013-01-30 14:20:58 -08:00