Jelajahi Sumber

Fix wrong state bug

cooperku_kdanmobile 5 tahun lalu
induk
melakukan
109422b836

+ 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頁是否是額外頁面,並且該額外頁面是否可見
      */