|
@@ -221,7 +221,7 @@ class ReaderViewModel(
|
|
|
|
|
|
private fun openPdfFileImp(context: Context, password: String, requestPassword: Runnable, type: String?): OpenFileResult {
|
|
private fun openPdfFileImp(context: Context, password: String, requestPassword: Runnable, type: String?): OpenFileResult {
|
|
file = File(uri.path)
|
|
file = File(uri.path)
|
|
- val factory = KMPDFFactory.open(context, uri, type) ?: return OpenFileResult.FAILED
|
|
|
|
|
|
+ val factory = KMPDFFactory.open(context, uri) ?: return OpenFileResult.FAILED
|
|
readerModel.initKMPDFFactory(factory, uri.path, password)
|
|
readerModel.initKMPDFFactory(factory, uri.path, password)
|
|
kmpdfFactory?.also {
|
|
kmpdfFactory?.also {
|
|
fileNameLiveData.postValue(it.fileName)
|
|
fileNameLiveData.postValue(it.fileName)
|