Commit 02e3bfb6 authored by wanglei's avatar wanglei

...

parent 2a06da57
......@@ -26,6 +26,7 @@ import com.base.datarecovery.utils.BarUtils
import com.base.datarecovery.utils.FileHexEx
import com.base.datarecovery.utils.LogEx
import com.base.datarecovery.view.DialogViews.showExitFunctionDialog
import com.base.datarecovery.view.DialogViews.showGerPermission
import com.base.datarecovery.view.FileScanDialog
import com.google.gson.Gson
import kotlinx.coroutines.Dispatchers
......@@ -82,9 +83,11 @@ class FileScanResultActivity : BaseActivity<ActivityFileScanResultBinding>() {
if (checkStorePermission()) {
beginScan()
} else {
requestStorePermission(launcher, result = {
if (it) beginScan() else finishToMain()
})
showGerPermission() {
requestStorePermission(launcher, result = {
if (it) beginScan() else finishToMain()
})
}
}
}
......
......@@ -15,8 +15,8 @@ object PermissionDialog {
val dialog = BottomSheetDialog(this)
val binding = DialogPermissionBottomsheetBinding.inflate(LayoutInflater.from(this))
dialog.setContentView(binding.root)
dialog.setCanceledOnTouchOutside(false)
dialog.setCancelable(false)
// dialog.setCanceledOnTouchOutside(false)
// dialog.setCancelable(false)
dialog.show()
val parentView = binding.root.parent as View
......
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