Commit c9493d8b authored by wanglei's avatar wanglei

...

parent c80bbc48
......@@ -72,8 +72,9 @@ class CleanJunkActivity : BaseActivity<ActivityLayoutCleanJunkBinding>() {
override fun initView() {
BarUtils.setStatusBarColor(this, Color.TRANSPARENT)
binding.root.updatePadding(top = BarUtils.getStatusBarHeight())
setAdapter()
AdmobUtils.showNativeAd(this@CleanJunkActivity, binding.flAd)
setAdapter()
}
override fun initListener() {
......@@ -102,8 +103,8 @@ class CleanJunkActivity : BaseActivity<ActivityLayoutCleanJunkBinding>() {
.putExtra("list", selectList.toTypedArray())
.putExtra("size", selectSize)
)
finish()
}
finish()
}
}
......
......@@ -22,6 +22,7 @@ import com.test.easy.easycleanerjunk.utils.BarUtils
import com.test.easy.easycleanerjunk.utils.FileHexEx.isImage
import com.test.easy.easycleanerjunk.utils.FileHexEx.isVideo
import com.test.easy.easycleanerjunk.view.AFunOb
import com.test.easy.easycleanerjunk.view.DialogViews.showDialogFunctionExit
import com.test.easy.easycleanerjunk.view.DialogViews.showGerPermission
import java.io.File
import kotlin.random.Random
......@@ -75,17 +76,18 @@ class WhatsAppCleanerActivity : BaseActivity<ActivityWhatsAppCleanerBinding>() {
onBackPressedDispatcher.onBackPressed()
}
onBackPressedDispatcher.addCallback {
// AdmobUtils.showInterstitialAd(this@WhatsAppCleanerActivity, isShowInterVal = false) {
// finishToMain()
// }
showDialogFunctionExit(AFunOb.WHATSAPP_CLEANER) {
AdmobUtils.showInterstitialAd(this@WhatsAppCleanerActivity) {
finishToMain()
}
}
}
binding.tvTvGotIt.setOnClickListener {
startActivity(Intent(this@WhatsAppCleanerActivity, ResultActivity::class.java).apply {
putExtra("from", AFunOb.WHATSAPP_CLEANER)
})
finish()
}
binding.tvTvGoIt.setOnClickListener {
onBackPressedDispatcher.onBackPressed()
}
}
......
......@@ -77,7 +77,6 @@
tools:ignore="HardcodedText" />
<FrameLayout
android:layout_width="match_parent"
android:layout_height="0dp"
......@@ -98,6 +97,11 @@
android:layout_weight="1"
android:visibility="visible" />
<FrameLayout
android:id="@+id/fl_ad"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<com.noober.background.view.BLTextView
android:id="@+id/id_cl_btn"
android:layout_width="match_parent"
......
......@@ -123,13 +123,13 @@
android:layout_gravity="top" />
<com.noober.background.view.BLTextView
android:id="@+id/tv_tv_go_it"
android:id="@+id/tv_tv_got_it"
android:layout_width="266dp"
android:layout_height="50dp"
android:layout_gravity="center_horizontal"
android:layout_marginBottom="16dp"
android:gravity="center"
android:text="Go it"
android:text="Got it"
android:textColor="@color/white"
android:textSize="19sp"
app:bl_corners_radius="10dp"
......
......@@ -13,6 +13,7 @@
app:cardCornerRadius="10dp"
app:cardElevation="0dp">
<ImageView
android:id="@+id/iv_close"
android:layout_width="wrap_content"
......
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