diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/de/pixart/messenger/ui/AboutActivity.java | 5 | ||||
-rw-r--r-- | src/main/java/de/pixart/messenger/ui/EditAccountActivity.java | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/AboutActivity.java b/src/main/java/de/pixart/messenger/ui/AboutActivity.java index 88f863476..9aaa8f2c7 100644 --- a/src/main/java/de/pixart/messenger/ui/AboutActivity.java +++ b/src/main/java/de/pixart/messenger/ui/AboutActivity.java @@ -5,6 +5,7 @@ import android.net.Uri; import android.os.Bundle; import android.widget.Button; +import de.pixart.messenger.BuildConfig; import de.pixart.messenger.R; import de.pixart.messenger.utils.ThemeHelper; @@ -33,13 +34,13 @@ public class AboutActivity extends XmppActivity { privacyButton = findViewById(R.id.show_privacy_policy); privacyButton.setOnClickListener(view -> { - final Uri uri = Uri.parse("https://jabber.pix-art.de/privacy/"); + final Uri uri = Uri.parse(BuildConfig.PRIVACY_URL); Intent browserIntent = new Intent(Intent.ACTION_VIEW, uri); startActivity(browserIntent); }); termsOfUseButton = findViewById(R.id.show_terms_of_use); termsOfUseButton.setOnClickListener(view -> { - final Uri uri = Uri.parse("https://jabber.pix-art.de/termsofuse/"); + final Uri uri = Uri.parse(BuildConfig.TERMS_OF_USE_URL); Intent browserIntent = new Intent(Intent.ACTION_VIEW, uri); startActivity(browserIntent); }); diff --git a/src/main/java/de/pixart/messenger/ui/EditAccountActivity.java b/src/main/java/de/pixart/messenger/ui/EditAccountActivity.java index 666c7b96d..0b18da407 100644 --- a/src/main/java/de/pixart/messenger/ui/EditAccountActivity.java +++ b/src/main/java/de/pixart/messenger/ui/EditAccountActivity.java @@ -45,6 +45,7 @@ import java.util.Set; import java.util.concurrent.atomic.AtomicBoolean; import java.util.concurrent.atomic.AtomicInteger; +import de.pixart.messenger.BuildConfig; import de.pixart.messenger.Config; import de.pixart.messenger.R; import de.pixart.messenger.crypto.axolotl.AxolotlService; @@ -625,12 +626,12 @@ public class EditAccountActivity extends OmemoActivity implements OnAccountUpdat this.binding.accountRegisterNew.setVisibility(View.GONE); } this.binding.showPrivacyPolicy.setOnClickListener(view -> { - final Uri uri = Uri.parse("https://jabber.pix-art.de/privacy/"); + final Uri uri = Uri.parse(BuildConfig.PRIVACY_URL); Intent browserIntent = new Intent(Intent.ACTION_VIEW, uri); startActivity(browserIntent); }); this.binding.showTermsOfUse.setOnClickListener(view -> { - final Uri uri = Uri.parse("https://jabber.pix-art.de/termsofuse/"); + final Uri uri = Uri.parse(BuildConfig.TERMS_OF_USE_URL); Intent browserIntent = new Intent(Intent.ACTION_VIEW, uri); startActivity(browserIntent); }); |