From 4a8a939f6493e927f58c2663be43adef79a19dcd Mon Sep 17 00:00:00 2001 From: McLoo Date: Sun, 14 Dec 2014 19:57:57 +0100 Subject: [PATCH] Enabled audio and video drafts All slide types do have an "image", changing the check order enables audio and video drafts. //FREEBIE --- src/org/thoughtcrime/securesms/ConversationActivity.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/org/thoughtcrime/securesms/ConversationActivity.java b/src/org/thoughtcrime/securesms/ConversationActivity.java index 6debdd87a8..df5f9f31c8 100644 --- a/src/org/thoughtcrime/securesms/ConversationActivity.java +++ b/src/org/thoughtcrime/securesms/ConversationActivity.java @@ -894,9 +894,9 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity } for (Slide slide : attachmentManager.getSlideDeck().getSlides()) { - if (slide.hasImage()) drafts.add(new Draft(Draft.IMAGE, slide.getUri().toString())); - else if (slide.hasAudio()) drafts.add(new Draft(Draft.AUDIO, slide.getUri().toString())); + if (slide.hasAudio()) drafts.add(new Draft(Draft.AUDIO, slide.getUri().toString())); else if (slide.hasVideo()) drafts.add(new Draft(Draft.VIDEO, slide.getUri().toString())); + else if (slide.hasImage()) drafts.add(new Draft(Draft.IMAGE, slide.getUri().toString())); } return drafts;