|
|
@ -804,13 +804,7 @@ public class FragmentRule extends FragmentBase {
|
|
|
|
|
|
|
|
|
|
|
|
tvAutomation.setText(getString(R.string.title_rule_automation_hint,
|
|
|
|
tvAutomation.setText(getString(R.string.title_rule_automation_hint,
|
|
|
|
EntityRule.ACTION_AUTOMATION,
|
|
|
|
EntityRule.ACTION_AUTOMATION,
|
|
|
|
TextUtils.join(", ", new String[]{
|
|
|
|
TextUtils.join(",", EntityRule.EXTRA_ALL)));
|
|
|
|
EntityRule.EXTRA_RULE,
|
|
|
|
|
|
|
|
EntityRule.EXTRA_SENDER,
|
|
|
|
|
|
|
|
EntityRule.EXTRA_NAME,
|
|
|
|
|
|
|
|
EntityRule.EXTRA_SUBJECT,
|
|
|
|
|
|
|
|
EntityRule.EXTRA_RECEIVED,
|
|
|
|
|
|
|
|
})));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
btnColorNotes.setOnClickListener(new View.OnClickListener() {
|
|
|
|
btnColorNotes.setOnClickListener(new View.OnClickListener() {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
@ -827,14 +821,10 @@ public class FragmentRule extends FragmentBase {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
tvUrlHint.setText(getString(R.string.title_rule_url_hint,
|
|
|
|
List<String> extras = new ArrayList<>();
|
|
|
|
TextUtils.join(", ", new String[]{
|
|
|
|
for (String extra : EntityRule.EXTRA_ALL)
|
|
|
|
"$" + EntityRule.EXTRA_RULE + "$",
|
|
|
|
extras.add("$" + extra + "$");
|
|
|
|
"$" + EntityRule.EXTRA_SENDER + "$",
|
|
|
|
tvUrlHint.setText(getString(R.string.title_rule_url_hint, TextUtils.join(", ", extras)));
|
|
|
|
"$" + EntityRule.EXTRA_NAME + "$",
|
|
|
|
|
|
|
|
"$" + EntityRule.EXTRA_SUBJECT + "$",
|
|
|
|
|
|
|
|
"$" + EntityRule.EXTRA_RECEIVED + "$",
|
|
|
|
|
|
|
|
})));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bottom_navigation.setOnNavigationItemSelectedListener(new BottomNavigationView.OnNavigationItemSelectedListener() {
|
|
|
|
bottom_navigation.setOnNavigationItemSelectedListener(new BottomNavigationView.OnNavigationItemSelectedListener() {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|