Cancel inserted spans on newline

This commit is contained in:
M66B 2022-12-29 22:28:06 +01:00
parent 3c7cdf639d
commit 987042be96
1 changed files with 7 additions and 0 deletions

View File

@ -303,6 +303,13 @@ public class StyleHelper {
if (renum)
StyleHelper.renumber(text, false, etBody.getContext());
if (BuildConfig.DEBUG) {
StyleHelper.InsertedSpan[] inserts =
text.getSpans(0, text.length(), StyleHelper.InsertedSpan.class);
for (StyleHelper.InsertedSpan span : inserts)
text.removeSpan(span);
}
} catch (Throwable ex) {
Log.e(ex);
} finally {