Commit 14c9bf84 authored by wanglei's avatar wanglei

...

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