dynamically reference app name in version string

This commit is contained in:
Daniel Gultsch 2018-04-26 21:21:17 +02:00
parent 120f7453e5
commit 9b2093eba5
1 changed files with 2 additions and 1 deletions

View File

@ -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()));
}
}