Commit bae714ac authored by wanglei's avatar wanglei

...

parent 91f5256c
...@@ -21,6 +21,7 @@ import com.base.filerecoveryrecyclebin.utils.BarUtils ...@@ -21,6 +21,7 @@ import com.base.filerecoveryrecyclebin.utils.BarUtils
import com.base.filerecoveryrecyclebin.utils.FileHexEx.isImage import com.base.filerecoveryrecyclebin.utils.FileHexEx.isImage
import com.base.filerecoveryrecyclebin.utils.FileHexEx.isVideo import com.base.filerecoveryrecyclebin.utils.FileHexEx.isVideo
import com.base.filerecoveryrecyclebin.utils.LogEx 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.DialogViews.showGerPermission
import com.google.gson.Gson import com.google.gson.Gson
import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Dispatchers
...@@ -114,14 +115,19 @@ class WhatsAppCleanerActivity : BaseActivity<ActivityWhatsAppCleanerBinding>() { ...@@ -114,14 +115,19 @@ class WhatsAppCleanerActivity : BaseActivity<ActivityWhatsAppCleanerBinding>() {
} }
onBackPressedDispatcher.addCallback { onBackPressedDispatcher.addCallback {
showInterstitialAdAndFinish() showInterstitialAdAndFinish()
} }
} }
private fun showInterstitialAdAndFinish() { private fun showInterstitialAdAndFinish() {
// AdmobMaxHelper.admobMaxShowInterstitialAd(this) { showExitFunctionDialog { showAd ->
finishToMain() if (showAd) {
// } AdmobMaxHelper.admobMaxShowInterstitialAd(this, false) {
finishToMain()
}
} else {
finishToMain()
}
}
} }
private fun initData() = lifecycleScope.launch(Dispatchers.IO) { private fun initData() = lifecycleScope.launch(Dispatchers.IO) {
......
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