Commit eb4dd54f authored by wanglei's avatar wanglei

...

parent d17820d8
......@@ -96,6 +96,7 @@ class MyApplication : BaseApplication() {
registerActivityLifecycleCallbacks(object : ActivityLifecycleCallbacks {
private var count = 0
override fun onActivityCreated(activity: Activity, savedInstanceState: Bundle?) {
LogEx.logDebug(TAG,"activity=$activity")
ActivityManagerUtils.getInstance().addActivity(activity)
}
......
......@@ -28,6 +28,7 @@ import com.base.filerecoveryrecyclebin.utils.BarUtils
import com.base.filerecoveryrecyclebin.utils.FileHexEx
import com.base.filerecoveryrecyclebin.utils.LogEx
import com.base.filerecoveryrecyclebin.view.DialogViews.showExitFunctionDialog
import com.base.filerecoveryrecyclebin.view.DialogViews.showGerPermission
import com.base.filerecoveryrecyclebin.view.FileScanDialog
import com.google.gson.Gson
import kotlinx.coroutines.Dispatchers
......@@ -90,9 +91,14 @@ class FileScanResultActivity : BaseActivity<ActivityFileScanResultBinding>() {
if (checkStorePermission()) {
beginScan()
} else {
showGerPermission(
desc = "In order to scan and recover your lost photos, videos, and documents, we need to access your device storage. This permission is essential for our app to locate and restore your files.",
deny = { finishToMain() },
allow = {
requestStorePermission(launcher, result = {
if (it) beginScan() else finishToMain()
})
})
}
}
......
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