Fix profile name not changed
This commit is contained in:
parent
584a824e17
commit
b08a0be750
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue