修复奔溃问题。
This commit is contained in:
parent
c1c5d8a210
commit
530c50da2b
|
@ -73,6 +73,7 @@ class InsertCoinsFragment(val modId: String) : BaseFragment<FragmentInsertCoinsB
|
||||||
}
|
}
|
||||||
WebMod.instance.getInsertCoinHistory(modId, object : ApiCallBack<InsertCoinHistoryData> {
|
WebMod.instance.getInsertCoinHistory(modId, object : ApiCallBack<InsertCoinHistoryData> {
|
||||||
override fun onResponse(t: InsertCoinHistoryData) {
|
override fun onResponse(t: InsertCoinHistoryData) {
|
||||||
|
if (isAdded) {
|
||||||
val dataList = t.data
|
val dataList = t.data
|
||||||
if (dataList.isNullOrEmpty()) {
|
if (dataList.isNullOrEmpty()) {
|
||||||
viewBinding.recyclerView.isVisible = false
|
viewBinding.recyclerView.isVisible = false
|
||||||
|
@ -99,6 +100,7 @@ class InsertCoinsFragment(val modId: String) : BaseFragment<FragmentInsertCoinsB
|
||||||
viewBinding.loadLayout.isVisible = false
|
viewBinding.loadLayout.isVisible = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
override fun onFailure(e: Exception) {
|
override fun onFailure(e: Exception) {
|
||||||
e.printStackTrace()
|
e.printStackTrace()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user