mirror of
https://github.com/gedoor/legado.git
synced 2024-09-03 09:55:00 +08:00
字符串大于1024时禁用代码高亮
This commit is contained in:
parent
92be85e69d
commit
c0e710affc
@ -169,7 +169,7 @@ class CodeView : AppCompatMultiAutoCompleteTextView {
|
||||
}
|
||||
|
||||
private fun highlight(editable: Editable): Editable {
|
||||
if (editable.isEmpty()) return editable
|
||||
if (editable.isEmpty() || editable.length > 1024) return editable
|
||||
try {
|
||||
clearSpans(editable)
|
||||
highlightErrorLines(editable)
|
||||
|
Loading…
Reference in New Issue
Block a user