public static void viewMmsMessageAttachment(
     Context context, WorkingMessage msg, int requestCode) {
   SlideshowModel slideshow = msg.getSlideshow();
   if (slideshow == null) {
     throw new IllegalStateException("msg.getSlideshow() == null");
   }
   if (slideshow.isSimple()) {
     MessageUtils.viewSimpleSlideshow(context, slideshow);
   } else {
     Uri uri = msg.saveAsMms(false);
     if (uri != null) {
       // Pass null for the slideshow paramater, otherwise viewMmsMessageAttachment
       // will persist the slideshow to disk again (we just did that above in saveAsMms)
       viewMmsMessageAttachment(context, uri, null, requestCode);
     }
   }
 }
 private void previewSlideshow() {
   MessageUtils.viewMmsMessageAttachment(SlideEditorActivity.this, mUri, mSlideshowModel);
 }
 /**
  * Play/view the message attachments. TOOD: We need to save the draft before launching another
  * activity to view the attachments. This is hacky though since we will do saveDraft twice and
  * slow down the UI. We should pass the slideshow in intent extra to the view activity instead of
  * asking it to read attachments from database.
  *
  * @param context
  * @param msgUri the MMS message URI in database
  * @param slideshow the slideshow to save
  * @param persister the PDU persister for updating the database
  * @param sendReq the SendReq for updating the database
  */
 public static void viewMmsMessageAttachment(
     Context context, Uri msgUri, SlideshowModel slideshow) {
   viewMmsMessageAttachment(context, msgUri, slideshow, 0);
 }