mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-03 13:44:40 +00:00
Simplification
This commit is contained in:
parent
0231365e58
commit
b33406f330
1 changed files with 0 additions and 24 deletions
|
@ -1331,24 +1331,6 @@ public class FragmentCompose extends FragmentBase {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
etTo.addTextChangedListener(new TextWatcher() {
|
|
||||||
@Override
|
|
||||||
public void beforeTextChanged(CharSequence text, int start, int count, int after) {
|
|
||||||
// Do nothing
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onTextChanged(CharSequence text, int start, int before, int count) {
|
|
||||||
// Do nothing
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void afterTextChanged(Editable text) {
|
|
||||||
if (TextUtils.isEmpty(text.toString().trim()))
|
|
||||||
identity_selectable = true;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
grpAddresses.setVisibility(cc_bcc ? View.VISIBLE : View.GONE);
|
grpAddresses.setVisibility(cc_bcc ? View.VISIBLE : View.GONE);
|
||||||
|
|
||||||
ibRemoveAttachments.setVisibility(View.GONE);
|
ibRemoveAttachments.setVisibility(View.GONE);
|
||||||
|
@ -1382,10 +1364,6 @@ public class FragmentCompose extends FragmentBase {
|
||||||
if (TextUtils.isEmpty(email))
|
if (TextUtils.isEmpty(email))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (!identity_selectable)
|
|
||||||
return;
|
|
||||||
identity_selectable = false;
|
|
||||||
|
|
||||||
Bundle args = new Bundle();
|
Bundle args = new Bundle();
|
||||||
args.putString("email", email);
|
args.putString("email", email);
|
||||||
|
|
||||||
|
@ -5494,8 +5472,6 @@ public class FragmentCompose extends FragmentBase {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
identity_selectable = (data.draft.to == null || data.draft.to.length == 0);
|
|
||||||
|
|
||||||
etExtra.setText(data.draft.extra);
|
etExtra.setText(data.draft.extra);
|
||||||
etTo.setText(MessageHelper.formatAddressesCompose(data.draft.to));
|
etTo.setText(MessageHelper.formatAddressesCompose(data.draft.to));
|
||||||
etCc.setText(MessageHelper.formatAddressesCompose(data.draft.cc));
|
etCc.setText(MessageHelper.formatAddressesCompose(data.draft.cc));
|
||||||
|
|
Loading…
Reference in a new issue