浏览代码

Fix wrong state bug

cooperku_kdanmobile 5 年之前
父节点
当前提交
109422b836
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      src/main/java/com/kdanmobile/reader/additionalpage/AdditionalPageManagerImpl.kt

+ 6 - 0
src/main/java/com/kdanmobile/reader/additionalpage/AdditionalPageManagerImpl.kt

@@ -39,6 +39,12 @@ class AdditionalPageManagerImpl(
         false
     }
 
+    init {
+        pageConverter.isAdditionalPageEnabled = {
+            displayStrategyType != DisplayStrategyType.HIDE
+        }
+    }
+
     /**
      * 判斷第pageIndex頁是否是額外頁面,並且該額外頁面是否可見
      */