Skip to content

Commit e969875

Browse files
committed
Log any type of Spans actually set in the content
1 parent a2e4adb commit e969875

File tree

1 file changed

+1
-2
lines changed
  • aztec/src/main/kotlin/org/wordpress/aztec/util

1 file changed

+1
-2
lines changed

aztec/src/main/kotlin/org/wordpress/aztec/util/Azteclog.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import org.json.JSONException
55
import org.json.JSONObject
66
import org.wordpress.android.util.AppLog
77
import org.wordpress.aztec.AztecText
8-
import org.wordpress.aztec.spans.IAztecAttributedSpan
98

109
class AztecLog {
1110
interface ExternalLogger {
@@ -21,7 +20,7 @@ class AztecLog {
2120
logContentJSON.put("content", aztecText.text.toString())
2221
logContentJSON.put("length", aztecText.text.length)
2322
val spansJSON = JSONArray()
24-
val spans = aztecText.text.getSpans(0, aztecText.text.length, IAztecAttributedSpan::class.java)
23+
val spans = aztecText.text.getSpans(0, aztecText.text.length, Any::class.java)
2524
spans.forEach {
2625
val currenSpanJSON = JSONObject()
2726
currenSpanJSON.put("clasz", it.javaClass.name)

0 commit comments

Comments
 (0)