|
|
@ -623,6 +623,7 @@ public class FragmentRule extends FragmentBase {
|
|
|
|
spIdent.setOnItemSelectedListener(onItemSelectedListener);
|
|
|
|
spIdent.setOnItemSelectedListener(onItemSelectedListener);
|
|
|
|
spAnswer.setOnItemSelectedListener(onItemSelectedListener);
|
|
|
|
spAnswer.setOnItemSelectedListener(onItemSelectedListener);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cbResend.setEnabled(false);
|
|
|
|
etTo.addTextChangedListener(new TextWatcher() {
|
|
|
|
etTo.addTextChangedListener(new TextWatcher() {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void beforeTextChanged(CharSequence s, int start, int count, int after) {
|
|
|
|
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() {
|
|
|
|
cbResend.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
|
|
|
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
|
|
@ -657,7 +659,7 @@ public class FragmentRule extends FragmentBase {
|
|
|
|
cbAnswerSubject.setEnabled(!checked);
|
|
|
|
cbAnswerSubject.setEnabled(!checked);
|
|
|
|
cbOriginalText.setEnabled(!checked);
|
|
|
|
cbOriginalText.setEnabled(!checked);
|
|
|
|
cbWithAttachments.setEnabled(!checked);
|
|
|
|
cbWithAttachments.setEnabled(!checked);
|
|
|
|
cbAttached.setEnabled(false);
|
|
|
|
cbAttached.setEnabled(!checked && protocol == EntityAccount.TYPE_IMAP);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|