Skip to content

Commit

Permalink
fix(profile-note): hide keyboard when edit note box goes away
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasGGamerM committed Dec 23, 2023
1 parent d534557 commit 2efb79f
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -959,6 +959,11 @@ public void onError(ErrorResponse error){
}, 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())
Expand Down

0 comments on commit 2efb79f

Please sign in to comment.