Commit 9dcda932 authored by wanglei's avatar wanglei

...

parent db0fdd7d
......@@ -47,6 +47,7 @@ import com.base.datarecovery.utils.BarUtils
import com.base.datarecovery.utils.LogEx
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.Job
import kotlinx.coroutines.cancel
import kotlinx.coroutines.delay
import kotlinx.coroutines.flow.MutableSharedFlow
import kotlinx.coroutines.flow.SharedFlow
......@@ -129,6 +130,7 @@ class SplashActivity : BaseActivity<ActivitySplashBinding>() {
if (it >= 100) {
job?.cancel()
jumpNext()
this.cancel()
}
}
}
......
......@@ -84,7 +84,7 @@ class FileScanResultActivity : BaseActivity<ActivityFileScanResultBinding>() {
if (checkStorePermission()) {
beginScan()
} else {
showGerPermission() {
showGerPermission(null, deny = { finishToMain() }) {
requestStorePermission(launcher, result = {
if (it) beginScan() else finishToMain()
})
......
......@@ -30,10 +30,10 @@ object AdMaxInit {
initConfigBuilder.mediationProvider = AppLovinMediationProvider.MAX
// Enable test mode by default for the current device. Cannot be run on the main thread.
val currentGaid = AdvertisingIdClient.getAdvertisingIdInfo(this).id
if (currentGaid != null) {
initConfigBuilder.testDeviceAdvertisingIds = Collections.singletonList(currentGaid)
}
// val currentGaid = AdvertisingIdClient.getAdvertisingIdInfo(this).id
// if (currentGaid != null) {
// initConfigBuilder.testDeviceAdvertisingIds = Collections.singletonList(currentGaid)
// }
// Initialize the AppLovin SDK
val sdk = AppLovinSdk.getInstance(this)
......
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