From 7d6b4706d1a4e332dc167673534b037ce16bbf51 Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 3 Oct 2023 21:07:22 +0200 Subject: [PATCH] List URL method --- app/src/main/java/eu/faircode/email/AdapterRule.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/AdapterRule.java b/app/src/main/java/eu/faircode/email/AdapterRule.java index f2fc3b91e4..910ce357b3 100644 --- a/app/src/main/java/eu/faircode/email/AdapterRule.java +++ b/app/src/main/java/eu/faircode/email/AdapterRule.java @@ -227,7 +227,10 @@ public class AdapterRule extends RecyclerView.Adapter { setAction(getAction(type), notes); } else if (type == EntityRule.TYPE_URL) { String url = jaction.getString("url"); - setAction(getAction(type), url); + String method = jaction.optString("method"); + if (TextUtils.isEmpty(method)) + method = "GET"; + setAction(getAction(type), method + " " + url); } else setAction(getAction(type), null);