|
|
@ -142,10 +142,10 @@ public class FragmentRule extends FragmentBase {
|
|
|
|
private Spinner spAnswer;
|
|
|
|
private Spinner spAnswer;
|
|
|
|
private CheckBox cbAnswerSubject;
|
|
|
|
private CheckBox cbAnswerSubject;
|
|
|
|
private CheckBox cbOriginalText;
|
|
|
|
private CheckBox cbOriginalText;
|
|
|
|
|
|
|
|
private CheckBox cbWithAttachments;
|
|
|
|
private EditText etTo;
|
|
|
|
private EditText etTo;
|
|
|
|
private ImageButton ibTo;
|
|
|
|
private ImageButton ibTo;
|
|
|
|
private CheckBox cbCc;
|
|
|
|
private CheckBox cbCc;
|
|
|
|
private CheckBox cbWithAttachments;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private Button btnTtsSetup;
|
|
|
|
private Button btnTtsSetup;
|
|
|
|
private Button btnTtsData;
|
|
|
|
private Button btnTtsData;
|
|
|
@ -294,10 +294,10 @@ public class FragmentRule extends FragmentBase {
|
|
|
|
spAnswer = view.findViewById(R.id.spAnswer);
|
|
|
|
spAnswer = view.findViewById(R.id.spAnswer);
|
|
|
|
cbAnswerSubject = view.findViewById(R.id.cbAnswerSubject);
|
|
|
|
cbAnswerSubject = view.findViewById(R.id.cbAnswerSubject);
|
|
|
|
cbOriginalText = view.findViewById(R.id.cbOriginalText);
|
|
|
|
cbOriginalText = view.findViewById(R.id.cbOriginalText);
|
|
|
|
|
|
|
|
cbWithAttachments = view.findViewById(R.id.cbWithAttachments);
|
|
|
|
etTo = view.findViewById(R.id.etTo);
|
|
|
|
etTo = view.findViewById(R.id.etTo);
|
|
|
|
ibTo = view.findViewById(R.id.ibTo);
|
|
|
|
ibTo = view.findViewById(R.id.ibTo);
|
|
|
|
cbCc = view.findViewById(R.id.cbCc);
|
|
|
|
cbCc = view.findViewById(R.id.cbCc);
|
|
|
|
cbWithAttachments = view.findViewById(R.id.cbWithAttachments);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
btnTtsSetup = view.findViewById(R.id.btnTtsSetup);
|
|
|
|
btnTtsSetup = view.findViewById(R.id.btnTtsSetup);
|
|
|
|
btnTtsData = view.findViewById(R.id.btnTtsData);
|
|
|
|
btnTtsData = view.findViewById(R.id.btnTtsData);
|
|
|
@ -1143,10 +1143,10 @@ public class FragmentRule extends FragmentBase {
|
|
|
|
|
|
|
|
|
|
|
|
cbAnswerSubject.setChecked(jaction.optBoolean("answer_subject", false));
|
|
|
|
cbAnswerSubject.setChecked(jaction.optBoolean("answer_subject", false));
|
|
|
|
cbOriginalText.setChecked(jaction.optBoolean("original_text", true));
|
|
|
|
cbOriginalText.setChecked(jaction.optBoolean("original_text", true));
|
|
|
|
|
|
|
|
cbWithAttachments.setChecked(jaction.optBoolean("attachments"));
|
|
|
|
|
|
|
|
|
|
|
|
etTo.setText(jaction.optString("to"));
|
|
|
|
etTo.setText(jaction.optString("to"));
|
|
|
|
cbCc.setChecked(jaction.optBoolean("cc"));
|
|
|
|
cbCc.setChecked(jaction.optBoolean("cc"));
|
|
|
|
cbWithAttachments.setChecked(jaction.optBoolean("attachments"));
|
|
|
|
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|
case EntityRule.TYPE_SOUND:
|
|
|
|
case EntityRule.TYPE_SOUND:
|
|
|
@ -1486,9 +1486,9 @@ public class FragmentRule extends FragmentBase {
|
|
|
|
jaction.put("answer", answer == null || answer.id == null ? -1 : answer.id);
|
|
|
|
jaction.put("answer", answer == null || answer.id == null ? -1 : answer.id);
|
|
|
|
jaction.put("answer_subject", cbAnswerSubject.isChecked());
|
|
|
|
jaction.put("answer_subject", cbAnswerSubject.isChecked());
|
|
|
|
jaction.put("original_text", cbOriginalText.isChecked());
|
|
|
|
jaction.put("original_text", cbOriginalText.isChecked());
|
|
|
|
|
|
|
|
jaction.put("attachments", cbWithAttachments.isChecked());
|
|
|
|
jaction.put("to", etTo.getText().toString().trim());
|
|
|
|
jaction.put("to", etTo.getText().toString().trim());
|
|
|
|
jaction.put("cc", cbCc.isChecked());
|
|
|
|
jaction.put("cc", cbCc.isChecked());
|
|
|
|
jaction.put("attachments", cbWithAttachments.isChecked());
|
|
|
|
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|
case EntityRule.TYPE_SOUND:
|
|
|
|
case EntityRule.TYPE_SOUND:
|
|
|
|