Commit d10e2c06 authored by wanglei's avatar wanglei

...

parent 1260b862
...@@ -21,6 +21,7 @@ import com.base.filerecoveryrecyclebin.help.FileHelp ...@@ -21,6 +21,7 @@ import com.base.filerecoveryrecyclebin.help.FileHelp
import com.base.filerecoveryrecyclebin.help.KotlinExt.toFormatSize import com.base.filerecoveryrecyclebin.help.KotlinExt.toFormatSize
import com.base.filerecoveryrecyclebin.help.PermissionHelp.checkStorePermission import com.base.filerecoveryrecyclebin.help.PermissionHelp.checkStorePermission
import com.base.filerecoveryrecyclebin.help.PermissionHelp.requestStorePermission import com.base.filerecoveryrecyclebin.help.PermissionHelp.requestStorePermission
import com.base.filerecoveryrecyclebin.utils.AppPreferences
import com.base.filerecoveryrecyclebin.utils.BarUtils import com.base.filerecoveryrecyclebin.utils.BarUtils
import com.base.filerecoveryrecyclebin.utils.MediaStoreUtils import com.base.filerecoveryrecyclebin.utils.MediaStoreUtils
import com.base.filerecoveryrecyclebin.view.DialogViews.showExitFunctionDialog import com.base.filerecoveryrecyclebin.view.DialogViews.showExitFunctionDialog
...@@ -107,16 +108,36 @@ class CleanJunkActivity : BaseActivity<ActivityLayoutCleanJunkBinding>() { ...@@ -107,16 +108,36 @@ class CleanJunkActivity : BaseActivity<ActivityLayoutCleanJunkBinding>() {
when (binding.tvBtn.text) { when (binding.tvBtn.text) {
"Got it" -> { "Got it" -> {
AdmobMaxHelper.admobMaxShowInterstitialAd(this,false){ val showJunkBtnAd = AppPreferences.getInstance().getString("showJunkBtnAd", "0").toInt()
if (showJunkBtnAd == 1) {
AdmobMaxHelper.admobMaxShowInterstitialAd(this, false) {
startActivity(Intent(this@CleanJunkActivity, ResultActivity::class.java).apply {
putExtra("clean_size", JUNK_CLEANER)
putExtra("from", 0)
})
}
} else {
startActivity(Intent(this@CleanJunkActivity, ResultActivity::class.java).apply { startActivity(Intent(this@CleanJunkActivity, ResultActivity::class.java).apply {
putExtra("clean_size", JUNK_CLEANER) putExtra("clean_size", JUNK_CLEANER)
putExtra("from", 0) putExtra("from", 0)
}) })
} }
} }
else -> { else -> {
AdmobMaxHelper.admobMaxShowInterstitialAd(this,false){ val showJunkBtnAd = AppPreferences.getInstance().getString("showJunkBtnAd", "0").toInt()
if (showJunkBtnAd == 1) {
AdmobMaxHelper.admobMaxShowInterstitialAd(this, false) {
startActivity(
Intent(this, CleaningActivity::class.java).apply {
val list = junkExpandAdapter.getChoosePath()
putExtra("list", list.map { it.chilepath }.toTypedArray())
putExtra("size", list.sumOf { it.childSize })
}
)
}
} else {
startActivity( startActivity(
Intent(this, CleaningActivity::class.java).apply { Intent(this, CleaningActivity::class.java).apply {
val list = junkExpandAdapter.getChoosePath() val list = junkExpandAdapter.getChoosePath()
......
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