Sfoglia il codice sorgente

1.日志上报添加内容

王鹏鹏 2 anni fa
parent
commit
3930c2ff86

+ 8 - 6
home/src/main/java/com/yingyangfly/home/activity/HomeActivity.kt

@@ -562,12 +562,14 @@ class HomeActivity : BaseMVVMActivity<ActivityHomeBinding, HomeViewModel>(), Vie
      * 跳转游戏页面
      */
     private fun gameLoading(bean: Record) {
-        ARouter.getInstance().build(RouterUrlCommon.gameIntroduction)
-            .withString("gameCode", bean.gameCode).withString("id", bean.id)
-            .withString("playClass", "A").withString("videoUrl", bean.gameVideoUrl)
-            .withString("desn", bean.desn).withTransition(R.anim.leftin, R.anim.leftout)
-            .navigation(mContext)
-        reportLog("首页任务内容: " + GsonUtil.GsonString(bean))
+        runOnUiThread {
+            ARouter.getInstance().build(RouterUrlCommon.gameIntroduction)
+                .withString("gameCode", bean.gameCode).withString("id", bean.id)
+                .withString("playClass", "A").withString("videoUrl", bean.gameVideoUrl)
+                .withString("desn", bean.desn).withTransition(R.anim.leftin, R.anim.leftout)
+                .navigation(mContext)
+            reportLog("首页任务内容: " + GsonUtil.GsonString(bean))
+        }
     }
 
     private fun initLiveData() {