cooperku_kdanmobile il y a 5 ans
Parent
commit
4520d35165

+ 1 - 1
PDFReaderReaderModule

@@ -1 +1 @@
-Subproject commit bbcb6fcdb5f5e046c31170a843732a0bbfc1b7e2
+Subproject commit 109422b83689c84839bfe0cac140c6dcbdc5ca11

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

@@ -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)