Enhancement Do not remove the attached MMS if no recipient set when pressing Send button

This commit is contained in:
Enming Xie
2016-09-01 20:09:07 +02:00
parent 6a226be147
commit 017e064b53
@@ -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(