Commit 9fda1551 authored by wanglei's avatar wanglei

...

parent 4705188b
......@@ -171,10 +171,10 @@ class PdfActivity : BaseActivity<ActivityPdfBinding>(), PdfView {
if (it) {
AdmobHelper.lastCloseDocumentShowAd = System.currentTimeMillis()
}
// finishToMain()
finishToMain()
}
} else {
// finishToMain()
finishToMain()
}
}
binding.flFanhui.setOnClickListener {
......
......@@ -377,11 +377,12 @@ class MainActivity : BaseActivity<ActivityMain2Binding>(), MainView {
mainPresenter.copyFile(file, newFile)
this.updateMediaStore()
// refreshPageList()
if (!checkStorePermission()) {
showPermissionThenBanner()
}
}
}
if (!checkStorePermission()) {
showPermissionThenBanner()
}
}
override fun refreshPageList() {
......
package com.base.pdfviewerscannerwhite.utils
object SpStringUtils {
private val TAG="SpStringUtils"
private val TAG = "SpStringUtils"
const val BOOKMARK_KEY = "bookmark_key"
//key=last_view_key value=/data/user/0/com.ttesst.gododo.redause/files/demo/DEMO.pdf_/_1728703007625
const val LAST_VIEW_KEY = "last_view_key"
fun getSpStringList(key: String): List<String> {
val sp = AppPreferences.getInstance().getString(key, "")
......@@ -15,7 +17,7 @@ object SpStringUtils {
}
fun addSpString(key: String, value: String) {
LogEx.logDebug(TAG,"key=$key value=$value")
LogEx.logDebug(TAG, "key=$key value=$value")
val list = getSpStringList(key).toMutableList()
list.add(value)
val string = list.joinToString(separator = "|||")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment