Skip to content

Commit

Permalink
fixed call to onMediaDeleted
Browse files Browse the repository at this point in the history
  • Loading branch information
mzorz committed Nov 23, 2017
1 parent dada459 commit f43d5e2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class DeleteMediaElementWatcher(aztecText: AztecText) : TextWatcher {
return
}

if (count > 0) {
if (count > 0 && count != after) {
aztecTextRef.get()?.text?.getSpans(start, start + count, AztecMediaSpan::class.java)
?.forEach {
it.onMediaDeleted()
Expand Down

0 comments on commit f43d5e2

Please sign in to comment.