diff --git a/main/src/main/java/com/yunbao/main/activity/MainHomeCommunityActivity.java b/main/src/main/java/com/yunbao/main/activity/MainHomeCommunityActivity.java index 4820b1b65..3d39a2049 100644 --- a/main/src/main/java/com/yunbao/main/activity/MainHomeCommunityActivity.java +++ b/main/src/main/java/com/yunbao/main/activity/MainHomeCommunityActivity.java @@ -9,6 +9,7 @@ import androidx.fragment.app.FragmentTransaction; import com.alibaba.android.arouter.facade.annotation.Route; import com.lzf.easyfloat.EasyFloat; +import com.umeng.analytics.MobclickAgent; import com.yunbao.common.activity.AbsActivity; import com.yunbao.common.bean.AnchorStartLiveBean; import com.yunbao.common.manager.IMLoginManager; @@ -54,6 +55,7 @@ public class MainHomeCommunityActivity extends AbsActivity { } APPEasyFloat.getInstance().dismiss(mContext); + MobclickAgent.onEvent(mContext, "short_drama_entrance", "短剧"); } @Override diff --git a/main/src/main/java/com/yunbao/main/views/MainHomeCommunityViewHolder.java b/main/src/main/java/com/yunbao/main/views/MainHomeCommunityViewHolder.java index d2900c4c4..57db2d92b 100644 --- a/main/src/main/java/com/yunbao/main/views/MainHomeCommunityViewHolder.java +++ b/main/src/main/java/com/yunbao/main/views/MainHomeCommunityViewHolder.java @@ -199,7 +199,6 @@ public class MainHomeCommunityViewHolder extends AbsMainHomeChildViewHolder impl public void onClick(View v) { if (viewPager != null) { if (index == 1) { - MobclickAgent.onEvent(mContext, "short_drama_entrance", "短剧"); RouteUtil.forwardCommunityActivity(); } else { viewPager.setCurrentItem(index);