am e65828e4: Merge "Try to get size of non content:// Attachments" into jb-ub-mail-ur9

* commit 'e65828e4bf8aa907bc8055b48d80c1e78bb8de05':
  Try to get size of non content:// Attachments
diff --git a/src/com/android/mail/compose/AttachmentsView.java b/src/com/android/mail/compose/AttachmentsView.java
index f0ace50..88290ef 100644
--- a/src/com/android/mail/compose/AttachmentsView.java
+++ b/src/com/android/mail/compose/AttachmentsView.java
@@ -282,6 +282,10 @@
         if (attachment.getName() == null) {
             attachment.setName(contentUri.getLastPathSegment());
         }
+        if (attachment.size == 0) {
+            // if the attachment is not a content:// for example, a file:// URI
+            attachment.size = getSizeFromFile(contentUri, contentResolver);
+        }
 
         attachment.setContentType(contentType);
         return attachment;