From 8b1e03694558c0d8e246777f75a7d75e2aae3e2b Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 8 Apr 2022 20:02:16 +0200 Subject: [PATCH] Refactoring --- app/build.gradle | 8 ++++---- app/src/main/java/eu/faircode/email/HtmlHelper.java | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 79abf9af0c..1a6bf3458d 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -161,7 +161,7 @@ android { buildConfigField "String", "LIBRAVATAR_DNS", "\"_avatars-sec._tcp,_avatars._tcp\"" buildConfigField "String", "LIBRAVATAR_URI", "\"https://seccdn.libravatar.org/avatar/\"" buildConfigField "String", "LIBRAVATAR_INFO", "\"https://libravatar.org/\"" - buildConfigField "String", "PAYPAL_URI", localProperties.getProperty("paypal.uri", "\"\"") + buildConfigField "String", "TX_URI", localProperties.getProperty("paypal.uri", "\"\"") buildConfigField "String", "GPA_URI", localProperties.getProperty("gpa.uri", "\"\"") buildConfigField "String", "INFO_URI", localProperties.getProperty("info.uri", "\"\"") buildConfigField "String", "DEV_DOMAIN", localProperties.getProperty("dev.domain", "\"\"") @@ -180,7 +180,7 @@ android { buildConfigField "String", "LIBRAVATAR_DNS", "\"_avatars-sec._tcp,_avatars._tcp\"" buildConfigField "String", "LIBRAVATAR_URI", "\"https://seccdn.libravatar.org/avatar/\"" buildConfigField "String", "LIBRAVATAR_INFO", "\"https://libravatar.org/\"" - buildConfigField "String", "PAYPAL_URI", "\"\"" + buildConfigField "String", "TX_URI", "\"\"" buildConfigField "String", "GPA_URI", "\"\"" buildConfigField "String", "INFO_URI", "\"\"" buildConfigField "String", "DEV_DOMAIN", "\"\"" @@ -200,7 +200,7 @@ android { buildConfigField "String", "LIBRAVATAR_DNS", "\"\"" buildConfigField "String", "LIBRAVATAR_URI", "\"\"" buildConfigField "String", "LIBRAVATAR_INFO", "\"\"" - buildConfigField "String", "PAYPAL_URI", "\"\"" + buildConfigField "String", "TX_URI", "\"\"" buildConfigField "String", "GPA_URI", "\"\"" buildConfigField "String", "INFO_URI", "\"\"" buildConfigField "String", "DEV_DOMAIN", "\"\"" @@ -220,7 +220,7 @@ android { buildConfigField "String", "LIBRAVATAR_DNS", "\"\"" buildConfigField "String", "LIBRAVATAR_URI", "\"\"" buildConfigField "String", "LIBRAVATAR_INFO", "\"\"" - buildConfigField "String", "PAYPAL_URI", "\"\"" + buildConfigField "String", "TX_URI", "\"\"" buildConfigField "String", "GPA_URI", "\"\"" buildConfigField "String", "INFO_URI", "\"\"" buildConfigField "String", "DEV_DOMAIN", "\"\"" diff --git a/app/src/main/java/eu/faircode/email/HtmlHelper.java b/app/src/main/java/eu/faircode/email/HtmlHelper.java index 1eb1b230dc..8ffedb7191 100644 --- a/app/src/main/java/eu/faircode/email/HtmlHelper.java +++ b/app/src/main/java/eu/faircode/email/HtmlHelper.java @@ -1450,7 +1450,7 @@ public class HtmlHelper { Element parent = (Element) node.parentNode(); if ("faircode_txn_id".equals(parent.className())) { Element a = document.createElement("a"); - a.attr("href", BuildConfig.PAYPAL_URI + text.trim()); + a.attr("href", BuildConfig.TX_URI + text.trim()); a.text(text); tnode.before(a); tnode.text("");