Commit c884d088 authored by wanglei's avatar wanglei

...

parent 594613fe
...@@ -4,6 +4,7 @@ import android.annotation.SuppressLint ...@@ -4,6 +4,7 @@ import android.annotation.SuppressLint
import android.graphics.Color import android.graphics.Color
import android.os.Environment import android.os.Environment
import androidx.activity.addCallback import androidx.activity.addCallback
import androidx.core.view.isVisible
import androidx.core.view.updatePadding import androidx.core.view.updatePadding
import androidx.lifecycle.lifecycleScope import androidx.lifecycle.lifecycleScope
import com.base.datarecovery.adapter.ScreenShotAdapter import com.base.datarecovery.adapter.ScreenShotAdapter
...@@ -92,6 +93,7 @@ class ScreenShotActivity : BaseActivity<ActivityScreenShotBinding>() { ...@@ -92,6 +93,7 @@ class ScreenShotActivity : BaseActivity<ActivityScreenShotBinding>() {
if (list.sumOf { it.screenPhotoBean.size } > 6 || ConfigHelper.mustShowNativeAd) { if (list.sumOf { it.screenPhotoBean.size } > 6 || ConfigHelper.mustShowNativeAd) {
AdmobMaxHelper.admobMaxShowNativeAd(this@ScreenShotActivity, binding.flAd) AdmobMaxHelper.admobMaxShowNativeAd(this@ScreenShotActivity, binding.flAd)
} }
binding.ivEmpty.isVisible = list.isEmpty()
} }
} }
...@@ -103,7 +105,7 @@ class ScreenShotActivity : BaseActivity<ActivityScreenShotBinding>() { ...@@ -103,7 +105,7 @@ class ScreenShotActivity : BaseActivity<ActivityScreenShotBinding>() {
onBackPressedDispatcher.addCallback { onBackPressedDispatcher.addCallback {
showExitFunctionDialog { showExitFunctionDialog {
if (it) { if (it) {
AdmobMaxHelper.admobMaxShowInterstitialAd(this@ScreenShotActivity){ AdmobMaxHelper.admobMaxShowInterstitialAd(this@ScreenShotActivity) {
finishToMain() finishToMain()
} }
} else { } else {
...@@ -124,7 +126,7 @@ class ScreenShotActivity : BaseActivity<ActivityScreenShotBinding>() { ...@@ -124,7 +126,7 @@ class ScreenShotActivity : BaseActivity<ActivityScreenShotBinding>() {
showDeletePermanentlyDialog { showDeletePermanentlyDialog {
if (showInterAdSp()) { if (showInterAdSp()) {
AdmobMaxHelper.admobMaxShowInterstitialAd(this){ AdmobMaxHelper.admobMaxShowInterstitialAd(this) {
cleanFile() cleanFile()
} }
} else { } else {
......
...@@ -120,12 +120,27 @@ ...@@ -120,12 +120,27 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" /> android:layout_height="wrap_content" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rv" <FrameLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="0dp" android:layout_height="0dp"
android:layout_weight="1" android:layout_weight="1">
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rv"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" />
<ImageView
android:id="@+id/iv_empty"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:src="@mipmap/queshengye"
android:visibility="gone"
tools:ignore="ContentDescription" />
</FrameLayout>
<androidx.constraintlayout.widget.ConstraintLayout <androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent" android:layout_width="match_parent"
......
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