Commit 9d15a298 authored by wanglei's avatar wanglei

...

parent 9396d5fc
......@@ -267,7 +267,7 @@ class ExcelActivity : BaseActivity<ActivityExcelBinding>() {
LogEx.logDebug(TAG, "initData-docSourceType = $docSourceType")
LogEx.logDebug(TAG, "initData-fileType = $fileType")
SpStringUtils.addSpString(SpStringUtils.LAST_VIEW_KEY, pathOrUri ?: "" + "_/_" + System.currentTimeMillis())
SpStringUtils.addSpString(SpStringUtils.LAST_VIEW_KEY, (pathOrUri ?: "") + "_/_" + System.currentTimeMillis())
}
......
......@@ -113,7 +113,7 @@ class PptActivity : BaseActivity<ActivityPptBinding>() {
LogEx.logDebug(TAG, "initData-docSourceType = $docSourceType")
LogEx.logDebug(TAG, "initData-fileType = $fileType")
SpStringUtils.addSpString(SpStringUtils.LAST_VIEW_KEY, pathOrUri ?: "" + "_/_" + System.currentTimeMillis())
SpStringUtils.addSpString(SpStringUtils.LAST_VIEW_KEY, (pathOrUri ?: "") + "_/_" + System.currentTimeMillis())
}
......
......@@ -296,7 +296,10 @@ class WordActivity : BaseActivity<ActivityWordBinding>() {
LogEx.logDebug(TAG, "initData-docSourceType = $docSourceType")
LogEx.logDebug(TAG, "initData-fileType = $fileType")
LogEx.logDebug(TAG, "initData-engine = $engine")
SpStringUtils.addSpString(SpStringUtils.LAST_VIEW_KEY, pathOrUri ?: "" + "_/_" + System.currentTimeMillis())
val value =( pathOrUri ?: "") + "_/_" + System.currentTimeMillis()
LogEx.logDebug(TAG, "value=$value")
SpStringUtils.addSpString(SpStringUtils.LAST_VIEW_KEY, value)
}
companion object {
......
package com.base.pdfviewerscannerwhite.utils
object SpStringUtils {
private val TAG="SpStringUtils"
const val BOOKMARK_KEY = "bookmark_key"
const val LAST_VIEW_KEY = "last_view_key"
......@@ -14,6 +15,7 @@ object SpStringUtils {
}
fun addSpString(key: String, value: String) {
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