|
|
@ -221,6 +221,7 @@ public class FragmentRule extends FragmentBase {
|
|
|
|
private long account = -1;
|
|
|
|
private long account = -1;
|
|
|
|
private int protocol = -1;
|
|
|
|
private int protocol = -1;
|
|
|
|
private long folder = -1;
|
|
|
|
private long folder = -1;
|
|
|
|
|
|
|
|
private String type = null;
|
|
|
|
private Uri sound = null;
|
|
|
|
private Uri sound = null;
|
|
|
|
|
|
|
|
|
|
|
|
private DateFormat DF;
|
|
|
|
private DateFormat DF;
|
|
|
@ -277,6 +278,7 @@ public class FragmentRule extends FragmentBase {
|
|
|
|
account = args.getLong("account", -1);
|
|
|
|
account = args.getLong("account", -1);
|
|
|
|
protocol = args.getInt("protocol", EntityAccount.TYPE_IMAP);
|
|
|
|
protocol = args.getInt("protocol", EntityAccount.TYPE_IMAP);
|
|
|
|
folder = args.getLong("folder", -1);
|
|
|
|
folder = args.getLong("folder", -1);
|
|
|
|
|
|
|
|
type = args.getString("type");
|
|
|
|
|
|
|
|
|
|
|
|
if (savedInstanceState != null)
|
|
|
|
if (savedInstanceState != null)
|
|
|
|
sound = savedInstanceState.getParcelable("fair:sound");
|
|
|
|
sound = savedInstanceState.getParcelable("fair:sound");
|
|
|
@ -710,7 +712,8 @@ public class FragmentRule extends FragmentBase {
|
|
|
|
actions.add(new Action(EntityRule.TYPE_IMPORTANCE, getString(R.string.title_rule_importance), R.drawable.twotone_north_24));
|
|
|
|
actions.add(new Action(EntityRule.TYPE_IMPORTANCE, getString(R.string.title_rule_importance), R.drawable.twotone_north_24));
|
|
|
|
actions.add(new Action(EntityRule.TYPE_KEYWORD, getString(R.string.title_rule_keyword), R.drawable.twotone_label_important_24));
|
|
|
|
actions.add(new Action(EntityRule.TYPE_KEYWORD, getString(R.string.title_rule_keyword), R.drawable.twotone_label_important_24));
|
|
|
|
actions.add(new Action(EntityRule.TYPE_NOTES, getString(R.string.title_rule_notes), R.drawable.twotone_sticky_note_2_24));
|
|
|
|
actions.add(new Action(EntityRule.TYPE_NOTES, getString(R.string.title_rule_notes), R.drawable.twotone_sticky_note_2_24));
|
|
|
|
actions.add(new Action(EntityRule.TYPE_MOVE, getString(R.string.title_rule_move), R.drawable.twotone_drive_file_move_24));
|
|
|
|
if (protocol == EntityAccount.TYPE_IMAP || EntityFolder.INBOX.equals(type))
|
|
|
|
|
|
|
|
actions.add(new Action(EntityRule.TYPE_MOVE, getString(R.string.title_rule_move), R.drawable.twotone_drive_file_move_24));
|
|
|
|
if (protocol == EntityAccount.TYPE_IMAP)
|
|
|
|
if (protocol == EntityAccount.TYPE_IMAP)
|
|
|
|
actions.add(new Action(EntityRule.TYPE_COPY, getString(R.string.title_rule_copy), R.drawable.twotone_file_copy_24));
|
|
|
|
actions.add(new Action(EntityRule.TYPE_COPY, getString(R.string.title_rule_copy), R.drawable.twotone_file_copy_24));
|
|
|
|
actions.add(new Action(EntityRule.TYPE_DELETE, getString(R.string.title_rule_delete), R.drawable.twotone_delete_forever_24));
|
|
|
|
actions.add(new Action(EntityRule.TYPE_DELETE, getString(R.string.title_rule_delete), R.drawable.twotone_delete_forever_24));
|
|
|
|