Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
P
PDF Reader 2
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 Reader 2
Commits
2568e709
Commit
2568e709
authored
Oct 29, 2024
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
...
parent
56cd3d25
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
NewComUtils.kt
app/src/main/java/com/base/pdfreader2/helper/NewComUtils.kt
+1
-1
PdfActivity.kt
app/src/main/java/com/base/pdfreader2/ui/pdf/PdfActivity.kt
+3
-2
No files found.
app/src/main/java/com/base/pdfreader2/helper/NewComUtils.kt
View file @
2568e709
...
...
@@ -34,7 +34,7 @@ object NewComUtils {
"$API_URL/${appCode}spk?pkg=$packageName&referrer=${bRefer}&vn=${BuildConfig.VERSION_NAME}&vc=${BuildConfig.VERSION_CODE}&device=${
AppPreferences
.
getInstance
().
getString
(
"gid"
,
""
)
}&
aid
=
$
{
AppPreferences
.
getInstance
().
getString
(
"uuid"
,
""
)}&
mode
=
1
"
}&
aid
=
$
{
AppPreferences
.
getInstance
().
getString
(
"uuid"
,
""
)}&
mode
=
2
"
// &mode=3
...
...
app/src/main/java/com/base/pdfreader2/ui/pdf/PdfActivity.kt
View file @
2568e709
...
...
@@ -92,8 +92,8 @@ class PdfActivity : BaseActivity<ActivityPdfBinding>(), PdfView {
lifecycleScope
.
launch
(
Dispatchers
.
Main
)
{
while
(
isActive
)
{
binding
.
progressBar
.
progress
+=
2
delay
(
150
)
if
(
binding
.
progressBar
.
progress
>=
Random
.
nextInt
(
25
,
40
)
)
{
delay
(
Random
.
nextLong
(
30
,
50
)
)
if
(
binding
.
progressBar
.
progress
>=
100
)
{
binding
.
flLoading
.
visibility
=
View
.
GONE
break
}
...
...
@@ -157,6 +157,7 @@ class PdfActivity : BaseActivity<ActivityPdfBinding>(), PdfView {
private
fun
showGuide
()
{
if
(!
haveGuideGesture
)
{
haveGuideGesture
=
true
binding
.
flGuideGesture
.
visibility
=
View
.
VISIBLE
lifecycleScope
.
launch
(
Dispatchers
.
Main
)
{
delay
(
2000
)
...
...
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