Skip to content

Commit c4a4499

Browse files
committed
Do not add special id but rather leave it to the client
1 parent b81650a commit c4a4499

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

aztec/src/main/kotlin/org/wordpress/aztec/spans/AztecMediaSpan.kt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,6 @@ class AztecMediaSpan(context: Context, drawable: Drawable?, override var attribu
109109
}
110110

111111
fun onClick(view: View) {
112-
// add a unique ID that can identify this image span
113-
if (!attributes.hasAttribute("aztec_id")) {
114-
attributes.setValue("aztec_id", UUID.randomUUID().toString())
115-
}
116-
117112
onMediaTappedListener?.mediaTapped(attributes, getWidth(imageDrawable), getHeight(imageDrawable))
118113
}
119114

0 commit comments

Comments
 (0)