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
209d5803
Commit
209d5803
authored
Oct 11, 2024
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
...
parent
ed76d540
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
PdfActivity.kt
...base/pdfviewerscannerwhite/ui/document/pdf/PdfActivity.kt
+11
-1
DialogView.kt
...java/com/base/pdfviewerscannerwhite/ui/view/DialogView.kt
+1
-1
No files found.
app/src/main/java/com/base/pdfviewerscannerwhite/ui/document/pdf/PdfActivity.kt
View file @
209d5803
...
...
@@ -35,6 +35,7 @@ import com.base.pdfviewerscannerwhite.bean.PdfPageBean
import
com.base.pdfviewerscannerwhite.databinding.ActivityPdfBinding
import
com.base.pdfviewerscannerwhite.helper.BaseActivity
import
com.base.pdfviewerscannerwhite.helper.MyApplication
import
com.base.pdfviewerscannerwhite.ui.view.PdfDialog.showPdfMoreDialog
import
com.base.pdfviewerscannerwhite.utils.KeyBoardUtils.hideKeyboard
import
com.base.pdfviewerscannerwhite.utils.KeyBoardUtils.showKeyBoard
import
com.base.pdfviewerscannerwhite.utils.LogEx
...
...
@@ -119,7 +120,12 @@ class PdfActivity : BaseActivity<ActivityPdfBinding>(), PdfView {
binding
.
flGuideGesture
.
visibility
=
View
.
VISIBLE
}
AdmobNativeUtils
.
showNativeAd
(
this
,
binding
.
flAd
,
R
.
layout
.
layout_admob_document
)
AdmobNativeUtils
.
showNativeAd
(
this
,
binding
.
flAd
,
R
.
layout
.
layout_admob_document
)
}
override
fun
jumpPage
(
pageIndex
:
Int
)
{
super
.
jumpPage
(
pageIndex
)
binding
.
mupdfReaderView
.
displayedViewIndex
=
pageIndex
}
private
fun
iniSetVerticalSeekbar
(
max
:
Int
)
{
...
...
@@ -247,6 +253,10 @@ class PdfActivity : BaseActivity<ActivityPdfBinding>(), PdfView {
haveGuideGesture
=
true
binding
.
flGuideGesture
.
visibility
=
View
.
GONE
}
binding
.
ivMore
.
setOnClickListener
{
val
count
=
muPDFCore
?.
countPages
()
?:
0
showPdfMoreDialog
(
this
,
count
-
1
,
path
)
}
}
/**
...
...
app/src/main/java/com/base/pdfviewerscannerwhite/ui/view/DialogView.kt
View file @
209d5803
...
...
@@ -176,7 +176,7 @@ object DialogView {
binding
.
tvPath
.
text
=
file
.
absolutePath
val
lastView
=
SpStringUtils
.
getSpStringList
(
LAST_VIEW_KEY
).
find
{
it
.
contains
(
file
.
absolutePath
)
}
if
(
lastView
!=
null
)
{
val
lastTime
=
lastView
.
split
(
"_"
)[
1
]
val
lastTime
=
lastView
.
split
(
"_
/_
"
)[
1
]
binding
.
tvLastView
.
text
=
lastTime
.
toLong
().
toFormatTime3
()
}
else
{
binding
.
tvLastView
.
text
=
file
.
lastModified
().
toFormatTime3
()
...
...
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