mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
use fallback text in settings screen if display-name is not yet set
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user