From 017e064b53e9474ed3f120a14fd1a518c8d0e077 Mon Sep 17 00:00:00 2001 From: Enming Xie Date: Thu, 1 Sep 2016 20:09:07 +0200 Subject: [PATCH] Enhancement Do not remove the attached MMS if no recipient set when pressing Send button --- QKSMS/src/main/java/com/moez/QKSMS/ui/view/ComposeView.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/QKSMS/src/main/java/com/moez/QKSMS/ui/view/ComposeView.java b/QKSMS/src/main/java/com/moez/QKSMS/ui/view/ComposeView.java index e77e223c..328358ab 100644 --- a/QKSMS/src/main/java/com/moez/QKSMS/ui/view/ComposeView.java +++ b/QKSMS/src/main/java/com/moez/QKSMS/ui/view/ComposeView.java @@ -426,7 +426,6 @@ public class ComposeView extends LinearLayout implements View.OnClickListener { } else { attachment = null; } - clearAttachment(); String[] recipients = null; if (mConversation != null) { @@ -440,6 +439,8 @@ public class ComposeView extends LinearLayout implements View.OnClickListener { // If we have some recipients, send the message! if (recipients != null && recipients.length > 0) { + clearAttachment(); + mReplyText.setText(""); AnalyticsManager.getInstance().sendEvent(