fix(profile-note): hide keyboard when edit note box goes away

This commit is contained in:
LucasGGamerM
2023-12-23 10:10:46 -03:00
parent d534557915
commit 2efb79f6cb

View File

@@ -959,6 +959,11 @@ public class ProfileFragment extends LoaderFragment implements OnBackPressedList
}, 100);
}else if(relationship.note.isEmpty()){
hidePrivateNote();
noteEdit.clearFocus();
noteEdit.postDelayed(()->{
InputMethodManager imm=getActivity().getSystemService(InputMethodManager.class);
imm.hideSoftInputFromWindow(noteEdit.getWindowToken(), 0);
}, 100);
UiUtils.beginLayoutTransition(scrollableContent);
}else{
new M3AlertDialogBuilder(getActivity())