fix: 修复线上闪退问题 https://jira.shanqu.cc/browse/GHZS-2948
This commit is contained in:
@ -808,8 +808,8 @@ class HomeSearchToolWrapperFragment : SearchToolWrapperFragment() {
|
||||
// positionOffset 小于零,表示 indicator 当前位置处于选中的 tab 的左边
|
||||
val indicatorOnLeft = positionOffset < 0F
|
||||
|
||||
val selectedTabBinding = mTabBindingList[selectedPosition]
|
||||
val selectedTabImageStyle = mTabImageStyleList[selectedPosition]
|
||||
val selectedTabBinding = mTabBindingList.safelyGetInRelease(selectedPosition) ?: return
|
||||
val selectedTabImageStyle = mTabImageStyleList.safelyGetInRelease(selectedPosition) ?: return
|
||||
|
||||
// 前一个 tab、当前选中的 tab、后一个 tab 的显示比例
|
||||
val preScaleRatio = 1 + abs(positionOffset) / 4
|
||||
|
||||
@ -102,6 +102,7 @@ class GameServerTestV2ListFragment :
|
||||
}
|
||||
|
||||
override fun initSkeletonScreen() {
|
||||
if (mBinding?.skeleton == null) return
|
||||
mSkeletonScreen = Skeleton.bind(mBinding?.skeleton)
|
||||
.shimmer(true)
|
||||
.angle(Constants.SHIMMER_ANGLE)
|
||||
|
||||
@ -962,11 +962,21 @@ object VHelper {
|
||||
location: String? = null) {
|
||||
Utils.log(LOG_TAG, "检测是需要安装还是启动 ${downloadEntity.gameId}")
|
||||
|
||||
if (downloadEntity.name.isNullOrEmpty()) {
|
||||
SentryHelper.onEvent(
|
||||
"V_GAME_DOWNLOAD_ENTITY_NAME_EMPTY",
|
||||
"game_id",
|
||||
downloadEntity.gameId,
|
||||
"location",
|
||||
location
|
||||
)
|
||||
}
|
||||
|
||||
installOrLaunch(
|
||||
context,
|
||||
downloadEntity.packageName,
|
||||
downloadEntity.gameId,
|
||||
downloadEntity.name,
|
||||
downloadEntity.name ?: "",
|
||||
downloadEntity.getGameCategory(),
|
||||
downloadEntity.getMetaExtra(KEY_BIT),
|
||||
location
|
||||
|
||||
Reference in New Issue
Block a user