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