From 9b2093eba5dea2ddedf7778ce42e552324424d0f Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Thu, 26 Apr 2018 21:21:17 +0200 Subject: [PATCH] dynamically reference app name in version string --- src/main/java/eu/siacs/conversations/ui/AboutPreference.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/eu/siacs/conversations/ui/AboutPreference.java b/src/main/java/eu/siacs/conversations/ui/AboutPreference.java index bd2042fb6..c0f039037 100644 --- a/src/main/java/eu/siacs/conversations/ui/AboutPreference.java +++ b/src/main/java/eu/siacs/conversations/ui/AboutPreference.java @@ -5,6 +5,7 @@ import android.content.Intent; import android.preference.Preference; import android.util.AttributeSet; +import eu.siacs.conversations.R; import eu.siacs.conversations.utils.PhoneHelper; public class AboutPreference extends Preference { @@ -26,7 +27,7 @@ public class AboutPreference extends Preference { } private void setSummary() { - setSummary("Conversations " + PhoneHelper.getVersionName(getContext())); + setSummary(getContext().getString(R.string.app_name) +' '+ PhoneHelper.getVersionName(getContext())); } }