From 06470010d0d81a765cf0d55eab6ab3e5166d6791 Mon Sep 17 00:00:00 2001 From: Christian Schneppe Date: Mon, 30 Apr 2018 23:53:41 +0200 Subject: dynamically reference app name in version string --- src/main/java/de/pixart/messenger/ui/AboutPreference.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/de/pixart/messenger/ui/AboutPreference.java b/src/main/java/de/pixart/messenger/ui/AboutPreference.java index 724dc3e83..1cfd8cbd6 100644 --- a/src/main/java/de/pixart/messenger/ui/AboutPreference.java +++ b/src/main/java/de/pixart/messenger/ui/AboutPreference.java @@ -5,7 +5,7 @@ import android.content.Intent; import android.preference.Preference; import android.util.AttributeSet; -import de.pixart.messenger.BuildConfig; +import de.pixart.messenger.R; import de.pixart.messenger.utils.PhoneHelper; public class AboutPreference extends Preference { @@ -27,7 +27,7 @@ public class AboutPreference extends Preference { } private void setSummary() { - setSummary("Pix-Art Messenger " + PhoneHelper.getVersionName(getContext()) + " [" + BuildConfig.FLAVOR + "]"); + setSummary(getContext().getString(R.string.app_name) + ' ' + PhoneHelper.getVersionName(getContext())); } } -- cgit v1.2.3