|
@@ -538,6 +538,15 @@ abstract class ReaderActivity :
|
|
|
onOpenedFile()
|
|
|
}
|
|
|
|
|
|
+ fun removeAdPages() {
|
|
|
+ if (adPageHelper.displayStrategy == AdPageHelper.DisplayStrategy.HIDE) return
|
|
|
+ val handler = viewModel.pdfInfoHandler
|
|
|
+ val pageIndex = currentPageIndex
|
|
|
+ adPageHelper.displayStrategy = AdPageHelper.DisplayStrategy.HIDE
|
|
|
+ viewModel.getReaderView()?.refresh(true)
|
|
|
+ handler.goToCurrentPage(pageIndex)
|
|
|
+ }
|
|
|
+
|
|
|
private fun initTextBoxContextMenuActions() {
|
|
|
viewModel.setTextBoxContextMenuActions(object : TextBoxContextMenuActionListener {
|
|
|
override fun onDelete(): Boolean {
|