mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-04 06:20:26 +00:00
Behavior fix
This commit is contained in:
parent
9ca4808a72
commit
2038218245
1 changed files with 3 additions and 1 deletions
|
@ -623,6 +623,7 @@ public class FragmentRule extends FragmentBase {
|
|||
spIdent.setOnItemSelectedListener(onItemSelectedListener);
|
||||
spAnswer.setOnItemSelectedListener(onItemSelectedListener);
|
||||
|
||||
cbResend.setEnabled(false);
|
||||
etTo.addTextChangedListener(new TextWatcher() {
|
||||
@Override
|
||||
public void beforeTextChanged(CharSequence s, int start, int count, int after) {
|
||||
|
@ -649,6 +650,7 @@ public class FragmentRule extends FragmentBase {
|
|||
}
|
||||
});
|
||||
|
||||
cbAttached.setEnabled(protocol == EntityAccount.TYPE_IMAP);
|
||||
cbResend.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
||||
@Override
|
||||
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
||||
|
@ -657,7 +659,7 @@ public class FragmentRule extends FragmentBase {
|
|||
cbAnswerSubject.setEnabled(!checked);
|
||||
cbOriginalText.setEnabled(!checked);
|
||||
cbWithAttachments.setEnabled(!checked);
|
||||
cbAttached.setEnabled(false);
|
||||
cbAttached.setEnabled(!checked && protocol == EntityAccount.TYPE_IMAP);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue