Commit bae714ac authored by wanglei's avatar wanglei

...

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