Commit a3547387 authored by wanglei's avatar wanglei

...

parent b4831f0d
......@@ -340,6 +340,7 @@ class MainPresenter(
}
fun starGmsScan(activity: Activity) {
runCatching {
val options =
GmsDocumentScannerOptions.Builder()
.setScannerMode(GmsDocumentScannerOptions.SCANNER_MODE_BASE)
......@@ -360,6 +361,7 @@ class MainPresenter(
.addOnFailureListener { e: Exception ->
}
}
}
fun deleteList(list: List<DocumentBean>) {
......
......@@ -166,6 +166,7 @@ object PdfDialog {
}
binding.llShare.setOnClickListener {
dialog.dismiss()
runCatching {
val pkg = this.packageName
LogEx.logDebug("showPdfMoreDialog", "pkg=$pkg")
val uri = FileProvider.getUriForFile(
......@@ -173,6 +174,7 @@ object PdfDialog {
)
startActivity(Intent.createChooser(IntentShareUtils.sharePdfIntent(uri), "Share PDF"))
}
}
binding.llPrint.setOnClickListener {
val uri = FileProvider.getUriForFile(
this, this.packageName + ".provider", File(pafPath)
......
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