From 5f8ed5765ad93e1135353344e845b556aa21811c Mon Sep 17 00:00:00 2001 From: jens Date: Thu, 21 Dec 2023 16:40:11 +0100 Subject: [PATCH] TriggerUrl result stored in variable --- app/src/main/java/com/jens/automation2/Action.java | 2 +- app/src/main/java/com/jens/automation2/Actions.java | 1 + .../main/res/layout/activity_manage_action_trigger_url.xml | 6 ++++++ app/src/main/res/values-de/strings.xml | 3 ++- app/src/main/res/values-es/strings.xml | 3 ++- app/src/main/res/values-fr/strings.xml | 1 + app/src/main/res/values-it/strings.xml | 3 ++- app/src/main/res/values-nl/strings.xml | 1 + app/src/main/res/values-pl/strings.xml | 3 ++- app/src/main/res/values-ru/strings.xml | 3 ++- app/src/main/res/values-zh-rCN/strings.xml | 3 ++- app/src/main/res/values/strings.xml | 3 ++- fastlane/metadata/android/en-US/changelogs/138.txt | 3 ++- 13 files changed, 26 insertions(+), 9 deletions(-) diff --git a/app/src/main/java/com/jens/automation2/Action.java b/app/src/main/java/com/jens/automation2/Action.java index 829e7a7..718b8d9 100644 --- a/app/src/main/java/com/jens/automation2/Action.java +++ b/app/src/main/java/com/jens/automation2/Action.java @@ -739,7 +739,7 @@ public class Action method = parameters[3]; } - String response = "httpError"; + String response = "HTTP_ERROR"; if(Settings.httpAttempts < 1) Miscellaneous.logEvent("w", "HTTP Request", Miscellaneous.getAnyContext().getResources().getString(R.string.cantDownloadTooFewRequestsInSettings), 3); diff --git a/app/src/main/java/com/jens/automation2/Actions.java b/app/src/main/java/com/jens/automation2/Actions.java index d9bae56..773894a 100644 --- a/app/src/main/java/com/jens/automation2/Actions.java +++ b/app/src/main/java/com/jens/automation2/Actions.java @@ -986,6 +986,7 @@ public class Actions public void useDownloadedWebpage(String result) { // Toast.makeText(context, "Result: " + result, Toast.LENGTH_LONG).show(); + Actions.setVariable("LAST_TRIGGERURL_RESULT" + Action.actionParameter2Split + result); } public static HttpClient getInsecureSslClient(HttpClient client) diff --git a/app/src/main/res/layout/activity_manage_action_trigger_url.xml b/app/src/main/res/layout/activity_manage_action_trigger_url.xml index e556478..cf24211 100644 --- a/app/src/main/res/layout/activity_manage_action_trigger_url.xml +++ b/app/src/main/res/layout/activity_manage_action_trigger_url.xml @@ -137,6 +137,12 @@ + +