Product: Pdftron Android SDK
Product Version:9.2.1
Please give a brief summary of your issue: Maintain unique modified annotations list
(Think of this as an email subject)
Please describe your issue and provide steps to reproduce it:
I am using
override fun onAnnotationsModified(annots: MutableMap<Annot, Int>?, extra: Bundle?) {
val modifiedList = annots?.keys
modifiedList?.let {
annotationsDto.modified.addAll(it)
annotationsDto.nonModifiedAnnotations.removeAll(it)
}
}
where
data class AnnotationsDto(
val addedList: MutableSet = mutableSetOf(),
val modified: MutableSet = mutableSetOf(),
val deletedList: MutableSet = mutableSetOf(),
val nonModifiedAnnotations: MutableSet = mutableSetOf()
)
Modified annotations are getting duplicated.
I need to override equals which is also not working as I am not able to extract the name field.
(The more descriptive your answer, the faster we are able to help you)
Please provide a link to a minimal sample where the issue is reproducible: