Move over attachment views, attachment handling, logs, utils.

Attachment is a first very bare bones attempt at bringing together
the two providers. I only made it to stand in while we work out the attachments
providers interface so I could check the visual.
This uses a Mock protocol attachment.
Change-Id: I4670059a1fb743fa0a93af24226c6dcd1be87273
diff --git a/src/com/android/email/compose/ComposeActivity.java b/src/com/android/email/compose/ComposeActivity.java
index c5edd4d..31d8421 100644
--- a/src/com/android/email/compose/ComposeActivity.java
+++ b/src/com/android/email/compose/ComposeActivity.java
@@ -27,12 +27,17 @@
 import android.view.View;
 import android.view.View.OnClickListener;
 import android.widget.Button;
+
+import com.android.email.providers.protos.Attachment;
+import com.android.email.providers.protos.mock.MockAttachment;
 import com.android.email.R;
+import com.android.email.utils.MimeType;
 
 public class ComposeActivity extends Activity implements OnClickListener {
 
     private Button mCcBccButton;
     private CcBccView mCcBccView;
+    private AttachmentsView mAttachmentsView;
 
     @Override
     public void onCreate(Bundle savedInstanceState) {
@@ -43,6 +48,7 @@
             mCcBccButton.setOnClickListener(this);
         }
         mCcBccView = (CcBccView) findViewById(R.id.cc_bcc_wrapper);
+        mAttachmentsView = (AttachmentsView)findViewById(R.id.attachments);
     }
 
     @Override
@@ -71,6 +77,14 @@
         int id = item.getItemId();
         boolean handled = false;
         switch (id) {
+            case R.id.add_attachment:
+                MockAttachment attachment = new MockAttachment();
+                attachment.partId = "0";
+                attachment.name = "testattachment.png";
+                attachment.contentType = MimeType.inferMimeType(attachment.name, null);
+                attachment.originExtras = "";
+                mAttachmentsView.addAttachment(attachment);
+                break;
             case R.id.add_cc:
             case R.id.add_bcc:
                 mCcBccView.show();