|
|
@@ -363,11 +363,14 @@ class HomeActivity : BaseMVVMActivity<ActivityHomeBinding, HomeViewModel>(), Vie
|
|
|
* 跳转游戏列表
|
|
|
*/
|
|
|
private fun jumpWebView(bean: Record) {
|
|
|
- ARouter.getInstance().build(RouterUrlCommon.gameIntroduction).withString("id", bean.id)
|
|
|
- .withString("gameCode", bean.gameCode).withString("playClass", bean.playClass)
|
|
|
- .withString("videoUrl", bean.gameVideoUrl).withString("desn", bean.desn)
|
|
|
- .withBoolean("homePage", true).withTransition(R.anim.leftin, R.anim.leftout)
|
|
|
- .navigation(mContext)
|
|
|
+ runOnUiThread {
|
|
|
+ ARouter.getInstance().build(RouterUrlCommon.gameIntroduction).withString("id", bean.id)
|
|
|
+ .withString("gameCode", bean.gameCode).withString("playClass", bean.playClass)
|
|
|
+ .withString("videoUrl", bean.gameVideoUrl).withString("desn", bean.desn)
|
|
|
+ .withTransition(R.anim.leftin, R.anim.leftout).navigation(mContext)
|
|
|
+ reportLog("首页推荐游戏内容:" + GsonUtil.GsonString(bean))
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -568,7 +571,7 @@ class HomeActivity : BaseMVVMActivity<ActivityHomeBinding, HomeViewModel>(), Vie
|
|
|
.withString("playClass", "A").withString("videoUrl", bean.gameVideoUrl)
|
|
|
.withString("desn", bean.desn).withTransition(R.anim.leftin, R.anim.leftout)
|
|
|
.navigation(mContext)
|
|
|
- reportLog("首页任务内容: " + GsonUtil.GsonString(bean))
|
|
|
+ reportLog("首页任务游戏内容: " + GsonUtil.GsonString(bean))
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -665,17 +668,17 @@ class HomeActivity : BaseMVVMActivity<ActivityHomeBinding, HomeViewModel>(), Vie
|
|
|
*/
|
|
|
private fun makeMessageAsRead(msg: V2TIMMessage) {
|
|
|
runOnUiThread {
|
|
|
- V2TIMManager.getConversationManager()
|
|
|
- .cleanConversationUnreadMessageCount(String.format("c2c_%s", msg.sender),
|
|
|
- 0,
|
|
|
- 0,
|
|
|
- object : V2TIMCallback {
|
|
|
- override fun onSuccess() {
|
|
|
- }
|
|
|
+ V2TIMManager.getConversationManager().cleanConversationUnreadMessageCount(
|
|
|
+ String.format("c2c_%s", msg.sender),
|
|
|
+ 0,
|
|
|
+ 0,
|
|
|
+ object : V2TIMCallback {
|
|
|
+ override fun onSuccess() {
|
|
|
+ }
|
|
|
|
|
|
- override fun onError(p0: Int, p1: String?) {
|
|
|
- }
|
|
|
- })
|
|
|
+ override fun onError(p0: Int, p1: String?) {
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
}
|
|
|
|