use fallback text in settings screen if display-name is not yet set

This commit is contained in:
B. Petersen
2018-10-02 21:53:00 +02:00
parent 7d85e2c3e8
commit 7109c6c806
@@ -65,7 +65,12 @@ public class ProfilePreference extends Preference {
if (profileAddressView == null) return;
final String address = DcHelper.get(getContext(), DcHelper.CONFIG_ADDRESS);
final String profileName = DcHelper.get(getContext(), DcHelper.CONFIG_DISPLAY_NAME);
String profileName = DcHelper.get(getContext(), DcHelper.CONFIG_DISPLAY_NAME);
if(profileName==null || profileName.isEmpty()) {
profileName = getContext().getString(R.string.CreateProfileActivity_your_profile_info);
}
final ProfileContactPhoto profileImage = new ProfileContactPhoto(address, String.valueOf(TextSecurePreferences.getProfileAvatarId(getContext())));
GlideApp.with(getContext().getApplicationContext())