Commit 14c9bf84 authored by wanglei's avatar wanglei

...

parent 9818558a
...@@ -28,6 +28,7 @@ import com.base.datarecovery.utils.TimeUtils.isWithinSixMonths ...@@ -28,6 +28,7 @@ import com.base.datarecovery.utils.TimeUtils.isWithinSixMonths
import com.base.datarecovery.utils.TimeUtils.isWithinTwentyFourMonths import com.base.datarecovery.utils.TimeUtils.isWithinTwentyFourMonths
import com.base.datarecovery.view.DialogViews.showRecoveringDialog import com.base.datarecovery.view.DialogViews.showRecoveringDialog
import com.google.gson.Gson import com.google.gson.Gson
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch import kotlinx.coroutines.launch
import java.io.File import java.io.File
...@@ -236,7 +237,7 @@ class FileRecoveryActivity : BaseActivity<ActivityFileRecoveryBinding>() { ...@@ -236,7 +237,7 @@ class FileRecoveryActivity : BaseActivity<ActivityFileRecoveryBinding>() {
} }
private fun initData() { private fun initData() = lifecycleScope.launch(Dispatchers.IO) {
val hash = HashMap<String, ArrayList<RecoveryBean>>() val hash = HashMap<String, ArrayList<RecoveryBean>>()
...@@ -257,8 +258,10 @@ class FileRecoveryActivity : BaseActivity<ActivityFileRecoveryBinding>() { ...@@ -257,8 +258,10 @@ class FileRecoveryActivity : BaseActivity<ActivityFileRecoveryBinding>() {
hash.forEach { (key, value) -> hash.forEach { (key, value) ->
list.add(FolderBean(time = key, recoveryList = value)) list.add(FolderBean(time = key, recoveryList = value))
} }
launch(Dispatchers.Main) {
adapter.setData(list) adapter.setData(list)
} }
}
private fun dateFilter(recoveryBean: RecoveryBean): Boolean { private fun dateFilter(recoveryBean: RecoveryBean): Boolean {
val index = dateFilterList.indexOfFirst { it.isSelect } val index = dateFilterList.indexOfFirst { it.isSelect }
......
...@@ -19,9 +19,9 @@ object ConfigHelper { ...@@ -19,9 +19,9 @@ object ConfigHelper {
const val openAdmobId = "/6499/example/app-open" const val openAdmobId = "/6499/example/app-open"
//max广告id //max广告id
const val interAdMaxId = "bda3ff6e90dcf1e6" const val interAdMaxId = "aa"
const val nativeAdMaxId = "92b665b1d235b7b8" const val nativeAdMaxId = "bb"
const val openAdMaxId = "a4e07d8b8295856d" const val openAdMaxId = "cc"
//一定展示大图广告 //一定展示大图广告
var mustShowNativeAd: Boolean = false var mustShowNativeAd: Boolean = false
......
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