修改bug

main
chengbin 4 months ago
parent b00a7c62f4
commit f5762436fc

@ -94,6 +94,7 @@ class HistoryVideoActivity : BaseActivity() {
} }
private fun queryData() { private fun queryData() {
showLoadingDialog(R.string.loading, false)
lifecycleScope.launch(Dispatchers.IO) { lifecycleScope.launch(Dispatchers.IO) {
val videoDao = DBUtils.videoDao() val videoDao = DBUtils.videoDao()
val videos = videoDao.getAllByTime(startTime, endTime) val videos = videoDao.getAllByTime(startTime, endTime)
@ -106,6 +107,7 @@ class HistoryVideoActivity : BaseActivity() {
(o2.time - o1.time).toInt() (o2.time - o1.time).toInt()
} }
mAdapter.setData(sortList) mAdapter.setData(sortList)
closeLoadingDialog()
} }
} }
} }

@ -82,7 +82,8 @@ class CommonTopBar : LinearLayout {
override fun onEnable(enable: Boolean) { override fun onEnable(enable: Boolean) {
LogUtils.w("wifiCallback onEnable = $enable") LogUtils.w("wifiCallback onEnable = $enable")
mBinding?.root?.post { mBinding?.root?.post {
mBinding?.wifi?.visibility = if (enable) View.VISIBLE else View.GONE // mBinding?.wifi?.visibility = if (enable) View.VISIBLE else View.GONE
mBinding?.wifi?.setImageLevel(0)
} }
} }
@ -103,7 +104,8 @@ class CommonTopBar : LinearLayout {
override fun onEnable(enable: Boolean) { override fun onEnable(enable: Boolean) {
LogUtils.w("sim enable callback : $enable") LogUtils.w("sim enable callback : $enable")
mBinding?.root?.post { mBinding?.root?.post {
mBinding?.fourG?.visibility = if (enable) View.VISIBLE else View.GONE // mBinding?.fourG?.visibility = if (enable) View.VISIBLE else View.GONE
mBinding?.fourG?.setImageLevel(0)
} }
} }

Loading…
Cancel
Save