Dear Alok,
To fix this you need to remove
vAnnotEnd(); from
PDFView.vAnnotPerform from the part:
if (m_annot.IsPopup && m_annot.Type == 1) // add type check as it enters also for highlight annot
{
//popup dialog to show text and subject.
//nuri is text content.
//subj is subject string.
if (m_listener != null)
m_listener.OnPDFAnnotPopup(m_annot, m_annot.PopupSubject, m_annot.PopupText);
//vAnnotEnd();
return;
}
And in
PDFReaderPage add
m_view.vAnnotEnd(); at the end of
OnCloseDialog:
private void OnCloseDialog(String subject, String content, bool cancel, bool edit)
{
if (cancel)
{
m_view.vNoteRemoveLast();
return;
}
if (mAnnot == null)
{
int index = -1;
PDFView.PDFPos pos = m_view.vGetPos(0, 0);
PDFVPage vpage = m_view.vGetPage(pos.pageno);
if (vpage != null)
{
PDFPage page = vpage.GetPage();
if (page != null)
{
index = page.AnnotCount;
if (index > 0)
mAnnot = page.GetAnnot(index - 1);
if (mAnnot == null)
return;
}
}
}
mAnnot.PopupSubject = subject;
mAnnot.PopupText = content;
mTextAnnotDialog.dismiss();
mTextAnnotDialog = null;
m_view.vAnnotEnd();
}
Note: the fix is already integrated in the latest version.