Commit a3547387 authored by wanglei's avatar wanglei

...

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