Cancel inserted spans on newline

pull/210/head
M66B 2 years ago
parent 3c7cdf639d
commit 987042be96

@ -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 {

Loading…
Cancel
Save