mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-31 06:08:31 +02:00
Added rule action GET URL
This commit is contained in:
@@ -225,6 +225,9 @@ public class AdapterRule extends RecyclerView.Adapter<AdapterRule.ViewHolder> {
|
||||
} else if (type == EntityRule.TYPE_NOTES) {
|
||||
String notes = jaction.getString("notes");
|
||||
setAction(getAction(type), notes);
|
||||
} else if (type == EntityRule.TYPE_URL) {
|
||||
String url = jaction.getString("url");
|
||||
setAction(getAction(type), url);
|
||||
} else
|
||||
setAction(getAction(type), null);
|
||||
|
||||
@@ -577,6 +580,8 @@ public class AdapterRule extends RecyclerView.Adapter<AdapterRule.ViewHolder> {
|
||||
return R.string.title_rule_local_only;
|
||||
case EntityRule.TYPE_NOTES:
|
||||
return R.string.title_rule_notes;
|
||||
case EntityRule.TYPE_URL:
|
||||
return R.string.title_rule_url;
|
||||
default:
|
||||
throw new IllegalArgumentException("Unknown action type=" + type);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user