fix button state/char counter not updating when empty

closes sk22#537
This commit is contained in:
sk 2023-06-03 21:24:40 +02:00
parent 11943571ad
commit 6684311ec5
1 changed files with 3 additions and 1 deletions

View File

@ -579,8 +579,10 @@ public class ComposeFragment extends MastodonToolbarFragment implements OnBackPr
@Override
public void afterTextChanged(Editable s){
if(s.length()==0)
if(s.length()==0){
updateCharCounter();
return;
}
int start=lastChangeStart;
int count=lastChangeCount;
// offset one char back to catch an already typed '@' or '#' or ':'