Forward uri permission for compose

JB+, use setClipData to forward the permission to the Service
so that we have the permission for the attachments for as long
as the service is up.

For pre-JB, call initializeAttachmentFds on the main thread
to ensure that we get those attachments before the activity ends.

b/17409336

Change-Id: Ic03c7fbfc39a6c54e96bff69a2c4914ac88361a8
1 file changed