Commit 2e3c41f1 authored by leichao.gao's avatar leichao.gao

结果页增加广告 开关

parent 6fb14be5
......@@ -118,7 +118,13 @@ class ResultActivity : BaseActivity<ActivityLayoutResultBinding>() {
onBackPressedDispatcher.addCallback(object : OnBackPressedCallback(true) {
override fun handleOnBackPressed() {
AdmobMaxHelper.admobMaxShowInterstitialAd(this@ResultActivity) {
val s = AppPreferences.getInstance().getString("isShowBackIntAd", "0").toIntOrNull()
?: 0
if (s == 1) {
AdmobMaxHelper.admobMaxShowInterstitialAd(this@ResultActivity) {
finishToMain()
}
}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