From f9f863ea5edcbab5bdc1573a474e6d308e03812e Mon Sep 17 00:00:00 2001 From: LucasGGamerM Date: Sat, 23 Dec 2023 15:37:23 -0300 Subject: [PATCH] fix(profile-note): add noteEdit must not be empty before hiding the note button --- .../org/joinmastodon/android/fragments/ProfileFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mastodon/src/main/java/org/joinmastodon/android/fragments/ProfileFragment.java b/mastodon/src/main/java/org/joinmastodon/android/fragments/ProfileFragment.java index 5cc849e2a8..80b277a60f 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/ProfileFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/ProfileFragment.java @@ -957,7 +957,7 @@ public void onError(ErrorResponse error){ InputMethodManager imm=getActivity().getSystemService(InputMethodManager.class); imm.showSoftInput(noteEdit, 0); }, 100); - }else if(relationship.note.isEmpty()){ + }else if(relationship.note.isEmpty() && noteEdit.getText().toString().isEmpty()){ hidePrivateNote(); noteEdit.clearFocus(); noteEdit.postDelayed(()->{