fix(profile-note): add noteEdit must not be empty before hiding the note button

This commit is contained in:
LucasGGamerM
2023-12-23 15:37:23 -03:00
parent 2efb79f6cb
commit f9f863ea5e

View File

@@ -957,7 +957,7 @@ public class ProfileFragment extends LoaderFragment implements OnBackPressedList
InputMethodManager imm=getActivity().getSystemService(InputMethodManager.class); InputMethodManager imm=getActivity().getSystemService(InputMethodManager.class);
imm.showSoftInput(noteEdit, 0); imm.showSoftInput(noteEdit, 0);
}, 100); }, 100);
}else if(relationship.note.isEmpty()){ }else if(relationship.note.isEmpty() && noteEdit.getText().toString().isEmpty()){
hidePrivateNote(); hidePrivateNote();
noteEdit.clearFocus(); noteEdit.clearFocus();
noteEdit.postDelayed(()->{ noteEdit.postDelayed(()->{