From cfc01f4b94d0e02fdea13893c70b90b0bfb69751 Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 26 Sep 2019 17:32:27 +0200 Subject: [PATCH] Simplified empty check --- .../main/java/eu/faircode/email/FragmentCompose.java | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentCompose.java b/app/src/main/java/eu/faircode/email/FragmentCompose.java index fa41283b63..39e6d8c0a0 100644 --- a/app/src/main/java/eu/faircode/email/FragmentCompose.java +++ b/app/src/main/java/eu/faircode/email/FragmentCompose.java @@ -1909,16 +1909,6 @@ public class FragmentCompose extends FragmentBase { } private boolean isEmpty() { - if (!TextUtils.isEmpty(etExtra.getText().toString().trim())) - return false; - if (!etTo.getText().toString().trim().equals(etTo.getTag())) - return false; - if (!TextUtils.isEmpty(etCc.getText().toString().trim())) - return false; - if (!TextUtils.isEmpty(etBcc.getText().toString().trim())) - return false; - if (!etSubject.getText().toString().trim().equals(etSubject.getTag())) - return false; if (!TextUtils.isEmpty(Jsoup.parse(HtmlHelper.toHtml(etBody.getText())).text().trim())) return false; if (rvAttachment.getAdapter().getItemCount() > 0)