修复一些闪退
1. 修复游戏详情页回到顶部的闪退 2. 尝试修复获取游戏更新时偶发的闪退
This commit is contained in:
@ -224,7 +224,9 @@ class DescFragment : BaseFragment<Any>(), IScrollable {
|
||||
}
|
||||
|
||||
override fun scrollToTop() {
|
||||
mRecyclerView.scrollToPosition(0)
|
||||
if (::mRecyclerView.isInitialized) {
|
||||
mRecyclerView.scrollToPosition(0)
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@ -82,7 +82,7 @@ object PackageRepository {
|
||||
mInstalledPkgList.addAll(list)
|
||||
notifyInstallPkgData()
|
||||
|
||||
loadInstalledGameDigestAndNotifyData(list, true)
|
||||
loadInstalledGameDigestAndNotifyData(list)
|
||||
loadGhzsUpdate()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user