diff --git a/app/src/main/java/com/gh/gamecenter/entity/GameUpdateEntity.kt b/app/src/main/java/com/gh/gamecenter/entity/GameUpdateEntity.kt index e34e28d78e..16f5f73568 100644 --- a/app/src/main/java/com/gh/gamecenter/entity/GameUpdateEntity.kt +++ b/app/src/main/java/com/gh/gamecenter/entity/GameUpdateEntity.kt @@ -2,12 +2,10 @@ package com.gh.gamecenter.entity import com.gh.gamecenter.common.constant.Constants import com.gh.gamecenter.common.entity.IconFloat -import com.gh.gamecenter.feature.exposure.ExposureEvent import com.gh.gamecenter.feature.entity.* +import com.gh.gamecenter.feature.exposure.ExposureEvent import com.google.gson.annotations.SerializedName -import kotlinx.parcelize.IgnoredOnParcel import java.util.* -import kotlin.collections.ArrayList data class GameUpdateEntity( @SerializedName("game_id") @@ -76,9 +74,8 @@ data class GameUpdateEntity( /** * 是否为 mod 游戏,根据是否有 mod 标签来判断,不受镜像、游戏屏蔽影响 */ - val isModdedGame by lazy { - tagStyle.any { it.name.lowercase(Locale.getDefault()) == "mod" } - } + val isModdedGame: Boolean + get() = tagStyle.any { it.name.lowercase(Locale.getDefault()) == "mod" } fun isShowPlugin(location: PluginLocation): Boolean { diff --git a/module_core_feature/src/main/java/com/gh/gamecenter/feature/entity/GameEntity.kt b/module_core_feature/src/main/java/com/gh/gamecenter/feature/entity/GameEntity.kt index d9d0377aa4..39f091580e 100644 --- a/module_core_feature/src/main/java/com/gh/gamecenter/feature/entity/GameEntity.kt +++ b/module_core_feature/src/main/java/com/gh/gamecenter/feature/entity/GameEntity.kt @@ -9,7 +9,7 @@ import com.gh.gamecenter.common.entity.CommunityEntity import com.gh.gamecenter.common.entity.Display import com.gh.gamecenter.common.entity.IconFloat import com.gh.gamecenter.common.entity.LinkEntity -import com.gh.gamecenter.core.provider.* +import com.gh.gamecenter.core.provider.IAppProvider import com.gh.gamecenter.feature.HaloApp import com.gh.gamecenter.feature.R import com.gh.gamecenter.feature.exposure.ExposureEvent @@ -577,9 +577,8 @@ data class GameEntity( * 是否为 mod 游戏,根据是否有 mod 标签来判断,不受镜像、游戏屏蔽影响 */ @IgnoredOnParcel - val isModdedGame by lazy { - mTagStyle.any { it.name.lowercase(Locale.getDefault()) == "mod" } - } + val isModdedGame: Boolean + get() = mTagStyle.any { it.name.lowercase(Locale.getDefault()) == "mod" } @IgnoredOnParcel val downloadAddWord: String?