Simplified empty check

pull/162/head
M66B 5 years ago
parent b1d50b4343
commit cfc01f4b94

@ -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)

Loading…
Cancel
Save