Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
P
PDF Viewer Scanner White
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wanglei
PDF Viewer Scanner White
Commits
9fda1551
Commit
9fda1551
authored
Oct 12, 2024
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
...
parent
4705188b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
7 deletions
+10
-7
PdfActivity.kt
...base/pdfviewerscannerwhite/ui/document/pdf/PdfActivity.kt
+2
-2
MainActivity.kt
...va/com/base/pdfviewerscannerwhite/ui/main/MainActivity.kt
+4
-3
SpStringUtils.kt
...ava/com/base/pdfviewerscannerwhite/utils/SpStringUtils.kt
+4
-2
No files found.
app/src/main/java/com/base/pdfviewerscannerwhite/ui/document/pdf/PdfActivity.kt
View file @
9fda1551
...
...
@@ -171,10 +171,10 @@ class PdfActivity : BaseActivity<ActivityPdfBinding>(), PdfView {
if
(
it
)
{
AdmobHelper
.
lastCloseDocumentShowAd
=
System
.
currentTimeMillis
()
}
//
finishToMain()
finishToMain
()
}
}
else
{
//
finishToMain()
finishToMain
()
}
}
binding
.
flFanhui
.
setOnClickListener
{
...
...
app/src/main/java/com/base/pdfviewerscannerwhite/ui/main/MainActivity.kt
View file @
9fda1551
...
...
@@ -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
()
{
...
...
app/src/main/java/com/base/pdfviewerscannerwhite/utils/SpStringUtils.kt
View file @
9fda1551
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
=
"|||"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment