diff options
author | Christian Schneppe <christian@pix-art.de> | 2018-04-30 23:53:41 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2018-04-30 23:53:41 +0200 |
commit | 06470010d0d81a765cf0d55eab6ab3e5166d6791 (patch) | |
tree | 8556f1304926683e9b30a05b7c7e129d41a5a2a9 | |
parent | fb6137a3ab8e5b2bcd41b01229ebd76b4020cbc9 (diff) |
dynamically reference app name in version string
Diffstat (limited to '')
-rw-r--r-- | src/main/java/de/pixart/messenger/ui/AboutPreference.java | 4 |
1 files 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())); } } |