Fix profile name not changed

This commit is contained in:
tom79 2020-04-15 09:28:06 +02:00
parent 584a824e17
commit b08a0be750
1 changed files with 3 additions and 3 deletions

View File

@ -357,12 +357,12 @@ public class EditProfileActivity extends BaseActivity implements OnRetrieveAccou
SharedPreferences sharedpreferences = getSharedPreferences(Helper.APP_PREFS, MODE_PRIVATE);
int theme = sharedpreferences.getInt(Helper.SET_THEME, Helper.THEME_DARK);
set_profile_save.setOnClickListener(v -> {
if (set_profile_name != null && set_profile_name.getHint() != null && set_profile_name.getText() != null && !set_profile_name.getText().toString().contentEquals(set_profile_name.getHint()))
if (set_profile_name.getText() != null )
profile_username = set_profile_name.getText().toString().trim();
else
profile_username = null;
profile_username = "";
if (set_profile_description != null && set_profile_description.getHint() != null && set_profile_description.getText() != null && !set_profile_description.getText().toString().contentEquals(set_profile_description.getHint()))
profile_note = set_profile_description.getText().toString().trim();
else