Commit 012a9eb7 authored by wanglei's avatar wanglei

...

parent c124ed22
......@@ -4,6 +4,7 @@ import android.app.Activity
import android.app.Application
import android.os.Bundle
import com.base.browserwhite.utils.ActivityManagerUtils
import com.facebook.FacebookSdk
class MyApplication : Application() {
......@@ -14,6 +15,7 @@ class MyApplication : Application() {
override fun onCreate() {
super.onCreate()
context = this
FacebookSdk.sdkInitialize(applicationContext)
initLifeListener()
}
......
......@@ -116,7 +116,9 @@ class MediaBrowserActivity : BaseActivity<ActivityMediaBrowserBinding>() {
binding.rv.adapter = adapter
if (!checkStorePermission()) {
showGerPermission(desc = "") {
showGerPermission(
desc = "This feature requires access to your storage to scan your files and clean up junk files and unused APK files. We will not transmit your data to any third-party service. Please grant permission so that we can provide you with better service.",
) {
requestStorePermission(launcher) {
if (!it) finishToMain()
}
......
......@@ -59,7 +59,9 @@ class ScanQRCActivity : BaseActivity<ActivityScanQrcBinding>() {
if (checkCameraPermission()) {
initCamera()
} else {
showGerPermission(desc = "") {
showGerPermission(
desc = "This feature requires access to your storage to scan your files and clean up junk files and unused APK files. We will not transmit your data to any third-party service. Please grant permission so that we can provide you with better service.",
) {
launcher.launch(arrayOf(Manifest.permission.CAMERA)) { map ->
if (map.values.all { it }) {
initCamera()
......
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