From b5040cedb300024c307bb9269e8a6c6622b9a38f Mon Sep 17 00:00:00 2001 From: jens Date: Tue, 14 Sep 2021 17:56:45 +0200 Subject: [PATCH] var replacement --- .idea/deploymentTargetDropDown.xml | 17 ----------------- .../com/jens/automation2/Miscellaneous.java | 6 ++++++ 2 files changed, 6 insertions(+), 17 deletions(-) delete mode 100644 .idea/deploymentTargetDropDown.xml diff --git a/.idea/deploymentTargetDropDown.xml b/.idea/deploymentTargetDropDown.xml deleted file mode 100644 index 4827fba6..00000000 --- a/.idea/deploymentTargetDropDown.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/app/src/main/java/com/jens/automation2/Miscellaneous.java b/app/src/main/java/com/jens/automation2/Miscellaneous.java index 89cbdaba..9da62890 100644 --- a/app/src/main/java/com/jens/automation2/Miscellaneous.java +++ b/app/src/main/java/com/jens/automation2/Miscellaneous.java @@ -607,7 +607,10 @@ public class Miscellaneous extends Service if(notificationTitle != null && notificationTitle.length() > 0) source = source.replace("[notificationTitle]", notificationTitle); else + { + source = source.replace("notificationTitle unknown", notificationTitle); Miscellaneous.logEvent("w", "Variable replacement", "notificationTitle was empty.", 3); + } } if(source.contains("[notificationText]")) @@ -617,7 +620,10 @@ public class Miscellaneous extends Service if(notificationText != null && notificationText.length() > 0) source = source.replace("[notificationText]", notificationText); else + { + source = source.replace("notificationText unknown", notificationText); Miscellaneous.logEvent("w", "Variable replacement", "notificationText was empty.", 3); + } } // Miscellaneous.logEvent("i", "URL after replace", source);