Browse Source

Add ReaderModel#isInitialized

Wayne 5 years ago
parent
commit
2f75d8a771
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/main/java/com/kdanmobile/reader/ReaderModel.kt

+ 2 - 0
src/main/java/com/kdanmobile/reader/ReaderModel.kt

@@ -14,6 +14,7 @@ import com.kdanmobile.reader.screen.handler.*
 
 class ReaderModel {
     private var filename: String? = null
+    var isInitialized = false
     var password: String = ""
         private set
 
@@ -39,6 +40,7 @@ class ReaderModel {
         this.kmpdfFactory = kmpdfFactory
         this.filename = filename
         this.password = password
+        this.isInitialized = false
     }
 
     fun initKMPDFDocumentController() {