Unique Modified annotations

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:

Hello, I’m Ron, an automated tech support bot :robot:

While you wait for one of our customer support representatives to get back to you, please check out some of these documentation pages:

Guides:APIs:Forums:

Hi,

I’m having issue trying to reproduce your issue. Could you provide a working sample project that shows this issue? Could you also provide steps to reproduce?

Thanks,
Andrew.

Can we discuss this over call ? I would like to share more on this.

Hi,

Please contact us directly to request a meeting here: PDFTron Systems Inc. | Company

Best,
Eamon