Compare commits

...

7 Commits

5 changed files with 18 additions and 5 deletions

View File

@ -1799,6 +1799,9 @@ class GameDetailFragment : ToolbarFragment(), IScrollable {
}
private fun logTabClick(position: Int) {
// 特殊处理延时选中 tab 时可能 fragment 已被移除的情况
if (!isAdded) return
val entrance = if (mEntrance.contains("论坛详情")) "论坛" else "游戏"
mGameEntity?.run {
when (getTabContentForReal(position)) {

View File

@ -599,7 +599,9 @@ object VHelper {
packageName,
downloadEntity?.gameId ?: "unknown",
MetaUtil.getBase64EncodedAndroidId(),
HaloApp.getInstance().gid)
HaloApp.getInstance().gid,
com.gh.gamecenter.BuildConfig.VERSION_NAME,
HaloApp.getInstance().channel)
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
context.startActivity(intent)

View File

@ -7,8 +7,8 @@ ext {
targetSdkVersion = 28
// application info (每个大版本之间的 versionCode 增加 20)
versionCode = 731
versionName = "5.19.1"
versionCode = 733
versionName = "5.19.3"
applicationId = "com.gh.gamecenter"
// AndroidX

View File

@ -7,6 +7,7 @@ import com.gh.gamecenter.core.AppExecutor.ioExecutor
import com.gh.gamecenter.core.AppExecutor.lightWeightIoExecutor
import com.gh.gamecenter.core.AppExecutor.logExecutor
import com.gh.gamecenter.core.AppExecutor.uiExecutor
import com.gh.gamecenter.core.utils.SentryHelper
import io.reactivex.schedulers.Schedulers
import java.util.concurrent.*
@ -81,7 +82,14 @@ fun runOnIoThread(
) {
when {
isLightWeightTask -> lightWeightIoExecutor.execute(f)
isHeavyWightTask -> heavyWeightIoExecutor.execute(f)
isHeavyWightTask -> {
try {
heavyWeightIoExecutor.execute(f)
} catch (e: RejectedExecutionException) {
SentryHelper.onEvent("HEAVY_TASK_REJECTED", "digest", e.localizedMessage)
e.printStackTrace()
}
}
else -> ioExecutor.execute(f)
}
}