|
@@ -8,9 +8,9 @@ import com.kdanmobile.kmpdfkit.manager.KMPDFFactory
|
|
|
import com.kdanmobile.kmpdfkit.pdfcommon.FilePicker
|
|
|
import com.kdanmobile.kmpdfkit.pdfcommon.KMPDFPageAdapter
|
|
|
import com.kdanmobile.reader.ReaderActivity
|
|
|
-import com.kdanmobile.reader.adpage.AbstractPageAdapter
|
|
|
+import com.kdanmobile.reader.additionalpage.AbstractPageAdapter
|
|
|
+import com.kdanmobile.reader.additionalpage.MyPageView
|
|
|
import com.kdanmobile.reader.setting.ReaderSettingDialogFragment
|
|
|
-import com.kdanmobile.reader.adpage.MyPageView
|
|
|
import com.kdanmobile.reader.thumb.PdfThumbDialogFragment
|
|
|
|
|
|
class MyReaderActivity : ReaderActivity() {
|
|
@@ -79,13 +79,13 @@ class MyReaderActivity : ReaderActivity() {
|
|
|
override fun onCreate(savedInstanceState: Bundle?) {
|
|
|
super.onCreate(savedInstanceState)
|
|
|
// 廣告已讀取完畢
|
|
|
- adPageHelper.isAdLoaded = {
|
|
|
+ additionalPageManager.isAdditionalPageLoaded = {
|
|
|
true
|
|
|
}
|
|
|
}
|
|
|
|
|
|
override fun providePdfPageAdapter(context: Context, filePickerSupport: FilePicker.FilePickerSupport, kmpdfFactory: KMPDFFactory): KMPDFPageAdapter {
|
|
|
- return object : AbstractPageAdapter(context, filePickerSupport, kmpdfFactory, adPageHelper) {
|
|
|
+ return object : AbstractPageAdapter(context, filePickerSupport, kmpdfFactory, additionalPageManager) {
|
|
|
override fun setupViewContent(position: Int, pageView: MyPageView) {
|
|
|
// 建立假廣告頁面
|
|
|
val imageView = ImageView(context)
|