fix: 修复首页推送相关闪退问题

This commit is contained in:
叶子维
2023-04-24 14:42:59 +08:00
parent 1d10fc52b9
commit ac86821871

View File

@ -207,8 +207,8 @@ class HomeFragment : LazyFragment() {
}
fun getHomeSlideBackgroundView(): View? {
val view = mBinding.gameList.layoutManager?.findViewByPosition(0)
return view?.findViewById(R.id.placeholderView)
val homeSlideView = view?.findViewById<RecyclerView>(R.id.game_list)?.layoutManager?.findViewByPosition(0)
return homeSlideView?.findViewById(R.id.placeholderView)
}
/**