Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
P
PDF Viewer Scanner White ago
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
kuxulei
PDF Viewer Scanner White ago
Commits
43cc1655
Commit
43cc1655
authored
Sep 26, 2024
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
...
parent
9105d9c3
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
10 deletions
+25
-10
PptActivity.kt
...base/pdfviewerscannerwhite/ui/document/ppt/PptActivity.kt
+0
-1
DocumentFragment.kt
...om/base/pdfviewerscannerwhite/ui/main/DocumentFragment.kt
+9
-7
MainActivity.kt
...va/com/base/pdfviewerscannerwhite/ui/main/MainActivity.kt
+10
-1
AssetUtils.kt
...n/java/com/base/pdfviewerscannerwhite/utils/AssetUtils.kt
+6
-1
No files found.
app/src/main/java/com/base/pdfviewerscannerwhite/ui/document/ppt/PptActivity.kt
View file @
43cc1655
...
@@ -16,7 +16,6 @@ import com.base.pdfviewerscannerwhite.ui.view.DialogView.showDocumentMore
...
@@ -16,7 +16,6 @@ import com.base.pdfviewerscannerwhite.ui.view.DialogView.showDocumentMore
import
com.base.pdfviewerscannerwhite.utils.LogEx
import
com.base.pdfviewerscannerwhite.utils.LogEx
import
com.cherry.lib.doc.bean.DocEngine
import
com.cherry.lib.doc.bean.DocEngine
import
com.cherry.lib.doc.office.pg.control.PGControl
import
com.cherry.lib.doc.office.pg.control.PGControl
import
com.cherry.lib.doc.office.system.beans.pagelist.APageListAdapter
import
com.cherry.lib.doc.util.Constant
import
com.cherry.lib.doc.util.Constant
class
PptActivity
:
BaseActivity
<
ActivityPptBinding
>()
{
class
PptActivity
:
BaseActivity
<
ActivityPptBinding
>()
{
...
...
app/src/main/java/com/base/pdfviewerscannerwhite/ui/main/DocumentFragment.kt
View file @
43cc1655
...
@@ -160,15 +160,17 @@ class DocumentFragment() : BaseFragment<FragmentDocumentBinding>(), DocumentView
...
@@ -160,15 +160,17 @@ class DocumentFragment() : BaseFragment<FragmentDocumentBinding>(), DocumentView
@SuppressLint
(
"NotifyDataSetChanged"
)
@SuppressLint
(
"NotifyDataSetChanged"
)
fun
changeSelectUi
(
select
:
Boolean
)
{
fun
changeSelectUi
(
select
:
Boolean
)
{
adapter
.
items
.
forEach
{
if
(
isVisible
)
{
if
(
select
)
{
adapter
.
items
.
forEach
{
it
.
uiType
=
1
if
(
select
)
{
}
else
{
it
.
uiType
=
1
it
.
isSelect
=
false
}
else
{
it
.
uiType
=
0
it
.
isSelect
=
false
it
.
uiType
=
0
}
}
}
adapter
.
notifyDataSetChanged
()
}
}
adapter
.
notifyDataSetChanged
()
}
}
fun
getSelectItems
():
List
<
DocumentBean
>
{
fun
getSelectItems
():
List
<
DocumentBean
>
{
...
...
app/src/main/java/com/base/pdfviewerscannerwhite/ui/main/MainActivity.kt
View file @
43cc1655
...
@@ -153,6 +153,12 @@ class MainActivity : BaseActivity<ActivityMainBinding>(), MainView {
...
@@ -153,6 +153,12 @@ class MainActivity : BaseActivity<ActivityMainBinding>(), MainView {
private
lateinit
var
callback
:
OnBackPressedCallback
private
lateinit
var
callback
:
OnBackPressedCallback
fun
callTab
()
{
if
(!
binding
.
llDocument
.
isSelected
&&
!
binding
.
llRecent
.
isSelected
&&
!
binding
.
llBookmark
.
isSelected
&&
!
binding
.
llTool
.
isSelected
)
{
binding
.
llDocument
.
callOnClick
()
}
}
@SuppressLint
(
"ClickableViewAccessibility"
,
"SetTextI18n"
)
@SuppressLint
(
"ClickableViewAccessibility"
,
"SetTextI18n"
)
override
fun
initListener
()
{
override
fun
initListener
()
{
super
.
initListener
()
super
.
initListener
()
...
@@ -176,8 +182,9 @@ class MainActivity : BaseActivity<ActivityMainBinding>(), MainView {
...
@@ -176,8 +182,9 @@ class MainActivity : BaseActivity<ActivityMainBinding>(), MainView {
binding
.
llDocument
.
setOnClickListener
{
binding
.
llDocument
.
setOnClickListener
{
changeDocumentUI
()
changeDocumentUI
()
}
}
binding
.
llRecent
.
setOnClickListener
{
binding
.
llRecent
.
setOnClickListener
{
changeRecentUI
()
changeRecentUI
()
}
}
...
@@ -211,6 +218,8 @@ class MainActivity : BaseActivity<ActivityMainBinding>(), MainView {
...
@@ -211,6 +218,8 @@ class MainActivity : BaseActivity<ActivityMainBinding>(), MainView {
}
}
}
}
}
}
callTab
()
}
}
private
fun
changeTabSelect
(
selectView
:
View
)
{
private
fun
changeTabSelect
(
selectView
:
View
)
{
...
...
app/src/main/java/com/base/pdfviewerscannerwhite/utils/AssetUtils.kt
View file @
43cc1655
...
@@ -68,7 +68,12 @@ object AssetUtils {
...
@@ -68,7 +68,12 @@ object AssetUtils {
fun
Context
.
saveAssetsFile
()
{
fun
Context
.
saveAssetsFile
()
{
val
demoFile
=
File
(
filesDir
,
"demo"
)
val
demoFile
=
File
(
filesDir
,
"demo"
)
demoFile
.
mkdirs
()
demoFile
.
mkdirs
()
arrayOf
(
"DEMO.pdf,DEMO.docx"
,
"DEMO.xlsx"
,
"DEMO.pptx"
).
forEach
{
arrayOf
(
"DEMO.pdf"
,
"DEMO.docx"
,
"DEMO.xlsx"
,
"DEMO.pptx"
).
forEach
{
val
file
=
File
(
demoFile
,
it
)
val
file
=
File
(
demoFile
,
it
)
if
(
file
.
exists
()
&&
file
.
length
()
!=
0L
)
{
if
(
file
.
exists
()
&&
file
.
length
()
!=
0L
)
{
return
return
...
...
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