Clear signature html on empty text

pull/159/head
M66B 5 years ago
parent 684cb896c0
commit ceed8f0b03

@ -302,7 +302,10 @@ public class FragmentIdentity extends FragmentBase {
public void afterTextChanged(Editable s) { public void afterTextChanged(Editable s) {
SpannableStringBuilder ssb = new SpannableStringBuilder(s); SpannableStringBuilder ssb = new SpannableStringBuilder(s);
Helper.clearComposingText(ssb); Helper.clearComposingText(ssb);
etSignature.setTag(HtmlHelper.toHtml(ssb)); if (TextUtils.isEmpty(s.toString()))
etSignature.setTag(null);
else
etSignature.setTag(HtmlHelper.toHtml(ssb));
} }
}); });

Loading…
Cancel
Save