aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart
diff options
context:
space:
mode:
authorChristian Schneppe <christian.schneppe@pix-art.de>2020-01-02 09:04:00 +0100
committerChristian Schneppe <christian.schneppe@pix-art.de>2020-01-02 09:04:00 +0100
commit1657e678ac20fdb472e7051543e04d9080665941 (patch)
treeb19006a173f828b9d37a1eee4836470855c450f6 /src/main/java/de/pixart
parentb4f8f4754018b711072dcf5e12f1bfe71353b907 (diff)
automatically set year in about message
Diffstat (limited to 'src/main/java/de/pixart')
-rw-r--r--src/main/java/de/pixart/messenger/ui/AboutActivity.java8
1 files changed, 8 insertions, 0 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..709ba8ee5 100644
--- a/src/main/java/de/pixart/messenger/ui/AboutActivity.java
+++ b/src/main/java/de/pixart/messenger/ui/AboutActivity.java
@@ -4,6 +4,9 @@ import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.widget.Button;
+import android.widget.TextView;
+
+import java.util.Calendar;
import de.pixart.messenger.R;
import de.pixart.messenger.utils.ThemeHelper;
@@ -12,6 +15,7 @@ public class AboutActivity extends XmppActivity {
private Button privacyButton;
private Button termsOfUseButton;
+ private TextView aboutmessage;
@Override
protected void refreshUiReal() {
@@ -31,6 +35,10 @@ public class AboutActivity extends XmppActivity {
setSupportActionBar(findViewById(R.id.toolbar));
configureActionBar(getSupportActionBar());
+ aboutmessage = findViewById(R.id.aboutmessage);
+ String year = String.valueOf(Calendar.getInstance().get(Calendar.YEAR));
+ aboutmessage.setText(getString(R.string.pref_about_message, year));
+
privacyButton = findViewById(R.id.show_privacy_policy);
privacyButton.setOnClickListener(view -> {
final Uri uri = Uri.parse("https://jabber.pix-art.de/privacy/");