cooperku_kdanmobile 4 tahun lalu
induk
melakukan
ebc89a885f

+ 1 - 1
PDFReaderReaderModule

@@ -1 +1 @@
-Subproject commit 109422b83689c84839bfe0cac140c6dcbdc5ca11
+Subproject commit 57f1ad8505d76325df9d493b35a68a06b6c0e938

+ 4 - 4
app/src/main/java/com/kdanmobile/pdfreaderviewapp/MyReaderActivity.kt

@@ -8,8 +8,8 @@ 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.additionalpage.AbstractPageAdapter
-import com.kdanmobile.reader.additionalpage.MyPageView
+import com.kdanmobile.reader.additionalpage.AbstractAdditionalPageAdapter
+import com.kdanmobile.reader.additionalpage.AdditionalPageView
 import com.kdanmobile.reader.setting.ReaderSettingDialogFragment
 import com.kdanmobile.reader.thumb.PdfThumbDialogFragment
 
@@ -85,8 +85,8 @@ class MyReaderActivity : ReaderActivity() {
     }
 
     override fun providePdfPageAdapter(context: Context, filePickerSupport: FilePicker.FilePickerSupport, kmpdfFactory: KMPDFFactory): KMPDFPageAdapter {
-        return object : AbstractPageAdapter(context, filePickerSupport, kmpdfFactory, additionalPageManager) {
-            override fun setupViewContent(position: Int, pageView: MyPageView) {
+        return object : AbstractAdditionalPageAdapter(context, filePickerSupport, kmpdfFactory, additionalPageManager) {
+            override fun setupViewContent(position: Int, pageView: AdditionalPageView) {
                 //  建立假廣告頁面
                 val imageView = ImageView(context)
                 imageView.setBackgroundResource(R.drawable.pic_test_ad)