Menu icon and tab count is going disappear with addHostListener(this)

Product:

Product Version:

Please give a brief summary of your issue:

Hi ,

When I am using mPdfViewCtrlTabHostFragment.addHostListener(this) my menu icon and pdf count is going disappear.

My Code is -

    val toolManagerBuilder: ToolManagerBuilder = ToolManagerBuilder.from()

    val config = ViewerConfig.Builder().toolManagerBuilder(toolManagerBuilder)

mPdfViewCtrlTabHostFragment = ViewerBuilder2.withUri(fileUri)
.usingConfig(config.build())
.build(activity)

    activity.supportFragmentManager.beginTransaction()
        .replace(R.id.pdf_container, mPdfViewCtrlTabHostFragment)
        .commit()

    mPdfViewCtrlTabHostFragment.addHostListener(this)

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:

When I am not using mPdfViewCtrlTabHostFragment.addHostListener(this) then these 2 item is appear.

and when i am using addHostListner(this) then these 2 item is going disappear.

Please help me to solve this issue.

Thanks-
Pawan

Hi Pawan, I’m having a hard time reproducing this on my end. Could you please provide a minimum sample that can reproduce this problem? Or are you able to reproduce this from any of our existing samples?

Thanks.