埋点配置
This commit is contained in:
parent
6bcaf2ba9c
commit
bebf0820ca
@ -24,6 +24,7 @@ import android.widget.TextView;
|
|||||||
import androidx.annotation.Nullable;
|
import androidx.annotation.Nullable;
|
||||||
import androidx.appcompat.app.AppCompatActivity;
|
import androidx.appcompat.app.AppCompatActivity;
|
||||||
|
|
||||||
|
import com.umeng.analytics.MobclickAgent;
|
||||||
import com.yunbao.common.R;
|
import com.yunbao.common.R;
|
||||||
import com.yunbao.common.glide.ImgLoader;
|
import com.yunbao.common.glide.ImgLoader;
|
||||||
import com.yunbao.common.interfaces.LifeCycleListener;
|
import com.yunbao.common.interfaces.LifeCycleListener;
|
||||||
@ -178,11 +179,15 @@ public abstract class AbsActivity extends AppCompatActivity {
|
|||||||
}
|
}
|
||||||
//友盟统计
|
//友盟统计
|
||||||
// MobclickAgent.onResume(this);
|
// MobclickAgent.onResume(this);
|
||||||
|
MobclickAgent.onPageStart(this.mTag);
|
||||||
|
Log.e("MobclickAgent","MobclickAgent:_onResume_"+this.mTag);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onPause() {
|
protected void onPause() {
|
||||||
super.onPause();
|
super.onPause();
|
||||||
|
MobclickAgent.onPageEnd(this.mTag);
|
||||||
|
Log.e("MobclickAgent","MobclickAgent:_onPause_"+this.mTag);
|
||||||
if (mLifeCycleListeners != null) {
|
if (mLifeCycleListeners != null) {
|
||||||
for (LifeCycleListener listener : mLifeCycleListeners) {
|
for (LifeCycleListener listener : mLifeCycleListeners) {
|
||||||
listener.onPause();
|
listener.onPause();
|
||||||
@ -376,4 +381,5 @@ public abstract class AbsActivity extends AppCompatActivity {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -297,7 +297,6 @@ public class WebViewActivity extends AbsActivity {
|
|||||||
@Override
|
@Override
|
||||||
protected void onResume() {
|
protected void onResume() {
|
||||||
super.onResume();
|
super.onResume();
|
||||||
MobclickAgent.onPageStart("WebViewActivity");
|
|
||||||
if (Constants.myIntoIndex == 2 && mWebView != null && indexInto == 1) {
|
if (Constants.myIntoIndex == 2 && mWebView != null && indexInto == 1) {
|
||||||
if (Build.VERSION.SDK_INT >= 21) {
|
if (Build.VERSION.SDK_INT >= 21) {
|
||||||
mWebView.post(new Runnable() {
|
mWebView.post(new Runnable() {
|
||||||
@ -440,7 +439,6 @@ public class WebViewActivity extends AbsActivity {
|
|||||||
@Override
|
@Override
|
||||||
protected void onPause() {
|
protected void onPause() {
|
||||||
super.onPause();
|
super.onPause();
|
||||||
MobclickAgent.onPageEnd("WebViewActivity");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -9,6 +9,7 @@ import androidx.annotation.NonNull;
|
|||||||
import androidx.recyclerview.widget.GridLayoutManager;
|
import androidx.recyclerview.widget.GridLayoutManager;
|
||||||
import androidx.recyclerview.widget.RecyclerView;
|
import androidx.recyclerview.widget.RecyclerView;
|
||||||
|
|
||||||
|
import com.umeng.analytics.MobclickAgent;
|
||||||
import com.yunbao.common.CommonAppConfig;
|
import com.yunbao.common.CommonAppConfig;
|
||||||
import com.yunbao.common.R;
|
import com.yunbao.common.R;
|
||||||
import com.yunbao.common.adapter.FunGamesAdapter;
|
import com.yunbao.common.adapter.FunGamesAdapter;
|
||||||
@ -22,7 +23,9 @@ import com.yunbao.common.utils.Bus;
|
|||||||
import com.yunbao.common.utils.ToastUtil;
|
import com.yunbao.common.utils.ToastUtil;
|
||||||
import com.yunbao.common.views.weight.ViewClicksAntiShake;
|
import com.yunbao.common.views.weight.ViewClicksAntiShake;
|
||||||
|
|
||||||
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
public class FunGamesViewHolder extends RecyclerView.ViewHolder {
|
public class FunGamesViewHolder extends RecyclerView.ViewHolder {
|
||||||
private FunGamesAdapter funGamesAdapter;
|
private FunGamesAdapter funGamesAdapter;
|
||||||
@ -76,6 +79,9 @@ public class FunGamesViewHolder extends RecyclerView.ViewHolder {
|
|||||||
.append("&token=")
|
.append("&token=")
|
||||||
.append(userInfo.getToken());
|
.append(userInfo.getToken());
|
||||||
}
|
}
|
||||||
|
Map<String, String> map_ekv = new HashMap<String, String>();
|
||||||
|
map_ekv.put("link", htmlUrl.toString());
|
||||||
|
MobclickAgent.onEvent(itemView.getContext(), "live_room_slide", map_ekv);
|
||||||
Bus.get().post(new CustomDrawerPopupEvent()
|
Bus.get().post(new CustomDrawerPopupEvent()
|
||||||
.setDisMiss(true)
|
.setDisMiss(true)
|
||||||
.setHtmlUrl(htmlUrl.toString())
|
.setHtmlUrl(htmlUrl.toString())
|
||||||
|
@ -9,9 +9,9 @@ ext {
|
|||||||
]
|
]
|
||||||
manifestPlaceholders = [
|
manifestPlaceholders = [
|
||||||
//正式、
|
//正式、
|
||||||
// serverHost : "https://napi.yaoulive.com",
|
serverHost : "https://napi.yaoulive.com",
|
||||||
// 测试
|
// 测试
|
||||||
serverHost : " https://ceshi.yaoulive.com",
|
// serverHost : " https://ceshi.yaoulive.com",
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -37,6 +37,7 @@ import com.lxj.xpopup.core.BasePopupView;
|
|||||||
import com.lxj.xpopup.enums.PopupPosition;
|
import com.lxj.xpopup.enums.PopupPosition;
|
||||||
import com.lxj.xpopup.interfaces.XPopupCallback;
|
import com.lxj.xpopup.interfaces.XPopupCallback;
|
||||||
import com.lzf.easyfloat.EasyFloat;
|
import com.lzf.easyfloat.EasyFloat;
|
||||||
|
import com.umeng.analytics.MobclickAgent;
|
||||||
import com.yunbao.common.CommonAppConfig;
|
import com.yunbao.common.CommonAppConfig;
|
||||||
import com.yunbao.common.Constants;
|
import com.yunbao.common.Constants;
|
||||||
import com.yunbao.common.HtmlConfig;
|
import com.yunbao.common.HtmlConfig;
|
||||||
@ -551,6 +552,7 @@ public class LiveAudienceActivity extends LiveActivity {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onBackPressed() {
|
public void onBackPressed() {
|
||||||
|
MobclickAgent.onEvent(mContext, "live_room_close", "退出直播间");
|
||||||
try {
|
try {
|
||||||
manager.onBackPressed();
|
manager.onBackPressed();
|
||||||
if (MicStatusManager.getInstance().getMicStatus() == MicStatusManager.MIC_TYPE_REQUEST) {
|
if (MicStatusManager.getInstance().getMicStatus() == MicStatusManager.MIC_TYPE_REQUEST) {
|
||||||
|
@ -39,7 +39,7 @@ public class GiftTitleAdapter extends RecyclerView.Adapter {
|
|||||||
notifyDataSetChanged();
|
notifyDataSetChanged();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
itemViewHolder.selectData(index == position);
|
itemViewHolder.selectData(index == position,name.get(position).getName());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -39,6 +39,7 @@ import androidx.recyclerview.widget.LinearLayoutManager;
|
|||||||
import androidx.recyclerview.widget.RecyclerView;
|
import androidx.recyclerview.widget.RecyclerView;
|
||||||
|
|
||||||
import com.makeramen.roundedimageview.RoundedImageView;
|
import com.makeramen.roundedimageview.RoundedImageView;
|
||||||
|
import com.umeng.analytics.MobclickAgent;
|
||||||
import com.yunbao.common.CommonAppConfig;
|
import com.yunbao.common.CommonAppConfig;
|
||||||
import com.yunbao.common.Constants;
|
import com.yunbao.common.Constants;
|
||||||
import com.yunbao.common.bean.IMLoginModel;
|
import com.yunbao.common.bean.IMLoginModel;
|
||||||
@ -158,6 +159,7 @@ public class LiveChatAdapter extends RecyclerView.Adapter {
|
|||||||
Log.i(TAG, "onScrolled: " + dy);
|
Log.i(TAG, "onScrolled: " + dy);
|
||||||
mRecyclerViewScrolledDy = dy;
|
mRecyclerViewScrolledDy = dy;
|
||||||
isBottom = false;
|
isBottom = false;
|
||||||
|
MobclickAgent.onEvent(mContext, "live_room_chat_list", "滑动直播间聊天列表");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -13,6 +13,7 @@ import android.widget.ImageView;
|
|||||||
import android.widget.RelativeLayout;
|
import android.widget.RelativeLayout;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
|
|
||||||
|
import com.umeng.analytics.MobclickAgent;
|
||||||
import com.yunbao.common.dialog.AbsDialogFragment;
|
import com.yunbao.common.dialog.AbsDialogFragment;
|
||||||
import com.yunbao.common.http.HttpCallback;
|
import com.yunbao.common.http.HttpCallback;
|
||||||
import com.yunbao.common.utils.ToastUtil;
|
import com.yunbao.common.utils.ToastUtil;
|
||||||
@ -135,6 +136,7 @@ public class BlowkissDialog extends AbsDialogFragment {
|
|||||||
btn_confirm.setOnClickListener(new View.OnClickListener() {
|
btn_confirm.setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View view) {
|
public void onClick(View view) {
|
||||||
|
MobclickAgent.onEvent(mContext, "live_room_follow_sendgif", "弹的关注并送礼的按钮");
|
||||||
follow();
|
follow();
|
||||||
LiveHttpUtil.sendGift("0", mLiveUid, LiveActivity.mStream, gif_id, "1", new HttpCallback() {
|
LiveHttpUtil.sendGift("0", mLiveUid, LiveActivity.mStream, gif_id, "1", new HttpCallback() {
|
||||||
@Override
|
@Override
|
||||||
|
@ -18,6 +18,7 @@ import com.alibaba.fastjson.JSON;
|
|||||||
import com.alibaba.fastjson.JSONArray;
|
import com.alibaba.fastjson.JSONArray;
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import com.lxj.xpopup.XPopup;
|
import com.lxj.xpopup.XPopup;
|
||||||
|
import com.umeng.analytics.MobclickAgent;
|
||||||
import com.yunbao.common.bean.LiveGiftBean;
|
import com.yunbao.common.bean.LiveGiftBean;
|
||||||
import com.yunbao.common.dialog.AbsDialogPopupWindow;
|
import com.yunbao.common.dialog.AbsDialogPopupWindow;
|
||||||
import com.yunbao.common.glide.ImgLoader;
|
import com.yunbao.common.glide.ImgLoader;
|
||||||
@ -148,6 +149,7 @@ public class LiveContactDetailsSendGiftDialog extends AbsDialogPopupWindow {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void send() {
|
private void send() {
|
||||||
|
MobclickAgent.onEvent(mContext, "contact_obtain", "点获取联系方式");
|
||||||
LiveHttpUtil.sendGift("0", mLiveUid, mStream, bean.getId(), "1", 1, new HttpCallback() {
|
LiveHttpUtil.sendGift("0", mLiveUid, mStream, bean.getId(), "1", 1, new HttpCallback() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
public void onSuccess(int code, String msg, String[] info) {
|
||||||
@ -164,6 +166,7 @@ public class LiveContactDetailsSendGiftDialog extends AbsDialogPopupWindow {
|
|||||||
}
|
}
|
||||||
}).build().show();
|
}).build().show();
|
||||||
} else {
|
} else {
|
||||||
|
MobclickAgent.onEvent(mContext, "contact_obtain_send_gif", "送出联系方式礼物");
|
||||||
dismiss();
|
dismiss();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -39,6 +39,7 @@ import com.opensource.svgaplayer.SVGADrawable;
|
|||||||
import com.opensource.svgaplayer.SVGAImageView;
|
import com.opensource.svgaplayer.SVGAImageView;
|
||||||
import com.opensource.svgaplayer.SVGAParser;
|
import com.opensource.svgaplayer.SVGAParser;
|
||||||
import com.opensource.svgaplayer.SVGAVideoEntity;
|
import com.opensource.svgaplayer.SVGAVideoEntity;
|
||||||
|
import com.umeng.analytics.MobclickAgent;
|
||||||
import com.yunbao.common.CommonAppConfig;
|
import com.yunbao.common.CommonAppConfig;
|
||||||
import com.yunbao.common.Constants;
|
import com.yunbao.common.Constants;
|
||||||
import com.yunbao.common.R;
|
import com.yunbao.common.R;
|
||||||
@ -55,6 +56,7 @@ import com.yunbao.common.event.SendBlindGiftEvent;
|
|||||||
import com.yunbao.common.glide.ImgLoader;
|
import com.yunbao.common.glide.ImgLoader;
|
||||||
import com.yunbao.common.http.HttpCallback;
|
import com.yunbao.common.http.HttpCallback;
|
||||||
import com.yunbao.common.http.HttpClient;
|
import com.yunbao.common.http.HttpClient;
|
||||||
|
import com.yunbao.common.http.LiveHttpUtil;
|
||||||
import com.yunbao.common.http.live.LiveNetManager;
|
import com.yunbao.common.http.live.LiveNetManager;
|
||||||
import com.yunbao.common.manager.IMLoginManager;
|
import com.yunbao.common.manager.IMLoginManager;
|
||||||
import com.yunbao.common.utils.AppManager;
|
import com.yunbao.common.utils.AppManager;
|
||||||
@ -79,7 +81,6 @@ import com.yunbao.live.event.GiftTitleEvent;
|
|||||||
import com.yunbao.live.event.LiveAudienceEvent;
|
import com.yunbao.live.event.LiveAudienceEvent;
|
||||||
import com.yunbao.live.event.LiveGiftItemEvent;
|
import com.yunbao.live.event.LiveGiftItemEvent;
|
||||||
import com.yunbao.live.event.LiveParcelItemRefreshEvent;
|
import com.yunbao.live.event.LiveParcelItemRefreshEvent;
|
||||||
import com.yunbao.common.http.LiveHttpUtil;
|
|
||||||
import com.yunbao.live.views.LiveGiftFragment;
|
import com.yunbao.live.views.LiveGiftFragment;
|
||||||
import com.yunbao.live.views.LiveParcelFragment;
|
import com.yunbao.live.views.LiveParcelFragment;
|
||||||
|
|
||||||
@ -203,6 +204,7 @@ public class LiveGiftPopup extends AbsDialogFragment {
|
|||||||
ViewClicksAntiShake.clicksAntiShake(liveWrap, new ViewClicksAntiShake.ViewClicksCallBack() {
|
ViewClicksAntiShake.clicksAntiShake(liveWrap, new ViewClicksAntiShake.ViewClicksCallBack() {
|
||||||
@Override
|
@Override
|
||||||
public void onViewClicks() {
|
public void onViewClicks() {
|
||||||
|
MobclickAgent.onEvent(mContext, "gif_list_pack_list", "用户点礼物栏包裹礼物按钮");
|
||||||
giftTitleAdapter.uncheck();
|
giftTitleAdapter.uncheck();
|
||||||
liveWrap.setAlpha(1.0f);
|
liveWrap.setAlpha(1.0f);
|
||||||
liveWrap.setTypeface(Typeface.SANS_SERIF, Typeface.BOLD);
|
liveWrap.setTypeface(Typeface.SANS_SERIF, Typeface.BOLD);
|
||||||
@ -217,6 +219,8 @@ public class LiveGiftPopup extends AbsDialogFragment {
|
|||||||
mBtnSendGroup.setOnClickListener(new View.OnClickListener() {
|
mBtnSendGroup.setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
|
|
||||||
|
MobclickAgent.onEvent(mContext, "gif_list_seed_gif", "用户送礼物");
|
||||||
sendGiftHandler.post(sendGiftRunnble);
|
sendGiftHandler.post(sendGiftRunnble);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -225,6 +229,7 @@ public class LiveGiftPopup extends AbsDialogFragment {
|
|||||||
ViewClicksAntiShake.clicksAntiShake(liveGiftSend, new ViewClicksAntiShake.ViewClicksCallBack() {
|
ViewClicksAntiShake.clicksAntiShake(liveGiftSend, new ViewClicksAntiShake.ViewClicksCallBack() {
|
||||||
@Override
|
@Override
|
||||||
public void onViewClicks() {
|
public void onViewClicks() {
|
||||||
|
MobclickAgent.onEvent(mContext, "gif_list_seed_gif", "用户送礼物");
|
||||||
sendGiftHandler.post(sendGiftRunnble);
|
sendGiftHandler.post(sendGiftRunnble);
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -233,6 +238,7 @@ public class LiveGiftPopup extends AbsDialogFragment {
|
|||||||
ViewClicksAntiShake.clicksAntiShake(findViewById(R.id.diamond_linear), new ViewClicksAntiShake.ViewClicksCallBack() {
|
ViewClicksAntiShake.clicksAntiShake(findViewById(R.id.diamond_linear), new ViewClicksAntiShake.ViewClicksCallBack() {
|
||||||
@Override
|
@Override
|
||||||
public void onViewClicks() {
|
public void onViewClicks() {
|
||||||
|
MobclickAgent.onEvent(mContext, "gif_list_recharge_list", "用户点礼物栏充值按钮");
|
||||||
forwardMyCoin(0);
|
forwardMyCoin(0);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -247,6 +253,7 @@ public class LiveGiftPopup extends AbsDialogFragment {
|
|||||||
ViewClicksAntiShake.clicksAntiShake(description, new ViewClicksAntiShake.ViewClicksCallBack() {
|
ViewClicksAntiShake.clicksAntiShake(description, new ViewClicksAntiShake.ViewClicksCallBack() {
|
||||||
@Override
|
@Override
|
||||||
public void onViewClicks() {
|
public void onViewClicks() {
|
||||||
|
MobclickAgent.onEvent(mContext, "gif_list_blind_box_info", "用户点开礼物列表盲盒页面的盲盒说明");
|
||||||
IMLoginModel userInfo = IMLoginManager.get(mContext).getUserInfo();
|
IMLoginModel userInfo = IMLoginManager.get(mContext).getUserInfo();
|
||||||
StringBuffer htmlUrl = new StringBuffer();
|
StringBuffer htmlUrl = new StringBuffer();
|
||||||
htmlUrl.append(CommonAppConfig.HOST)
|
htmlUrl.append(CommonAppConfig.HOST)
|
||||||
@ -267,6 +274,7 @@ public class LiveGiftPopup extends AbsDialogFragment {
|
|||||||
ViewClicksAntiShake.clicksAntiShake(findViewById(R.id.btn_luck_gift_tip), new ViewClicksAntiShake.ViewClicksCallBack() {
|
ViewClicksAntiShake.clicksAntiShake(findViewById(R.id.btn_luck_gift_tip), new ViewClicksAntiShake.ViewClicksCallBack() {
|
||||||
@Override
|
@Override
|
||||||
public void onViewClicks() {
|
public void onViewClicks() {
|
||||||
|
MobclickAgent.onEvent(mContext, "gif_list_opened_noble", "用户点击开通贵族");
|
||||||
dismiss();
|
dismiss();
|
||||||
((LiveActivity) mContext).openLuckGiftTip();
|
((LiveActivity) mContext).openLuckGiftTip();
|
||||||
}
|
}
|
||||||
@ -275,6 +283,7 @@ public class LiveGiftPopup extends AbsDialogFragment {
|
|||||||
ViewClicksAntiShake.clicksAntiShake(findViewById(R.id.leveling_layout), new ViewClicksAntiShake.ViewClicksCallBack() {
|
ViewClicksAntiShake.clicksAntiShake(findViewById(R.id.leveling_layout), new ViewClicksAntiShake.ViewClicksCallBack() {
|
||||||
@Override
|
@Override
|
||||||
public void onViewClicks() {
|
public void onViewClicks() {
|
||||||
|
MobclickAgent.onEvent(mContext, "gif_list_grade", "用户点击等级页面");
|
||||||
IMLoginModel userInfo = IMLoginManager.get(mContext).getUserInfo();
|
IMLoginModel userInfo = IMLoginManager.get(mContext).getUserInfo();
|
||||||
StringBuffer htmlUrl = new StringBuffer();
|
StringBuffer htmlUrl = new StringBuffer();
|
||||||
htmlUrl.append(CommonAppConfig.HOST)
|
htmlUrl.append(CommonAppConfig.HOST)
|
||||||
@ -527,6 +536,9 @@ public class LiveGiftPopup extends AbsDialogFragment {
|
|||||||
*/
|
*/
|
||||||
public void sendGift() {
|
public void sendGift() {
|
||||||
if (liveGiftModel == null) return;
|
if (liveGiftModel == null) return;
|
||||||
|
if (liveGiftModel.getType() == 7) {
|
||||||
|
MobclickAgent.onEvent(mContext, "gif_list_blind_box_seed", "用户发送盲盒");
|
||||||
|
}
|
||||||
if (liveGiftModel.getTag() != null) {
|
if (liveGiftModel.getTag() != null) {
|
||||||
if (mCount.equals("1")) {
|
if (mCount.equals("1")) {
|
||||||
LiveHttpUtil.setFrontTask("sendgift", mLiveUid, new HttpCallback() {
|
LiveHttpUtil.setFrontTask("sendgift", mLiveUid, new HttpCallback() {
|
||||||
@ -731,6 +743,7 @@ public class LiveGiftPopup extends AbsDialogFragment {
|
|||||||
@Subscribe(threadMode = ThreadMode.MAIN)
|
@Subscribe(threadMode = ThreadMode.MAIN)
|
||||||
public void onLiveGiftItemEvent(LiveGiftItemEvent event) {
|
public void onLiveGiftItemEvent(LiveGiftItemEvent event) {
|
||||||
liveGiftModel = event.getLiveGiftModel();
|
liveGiftModel = event.getLiveGiftModel();
|
||||||
|
MobclickAgent.onEvent(mContext, "gif_list_choose", "用户选中某个礼物:" + liveGiftModel.getName());
|
||||||
|
|
||||||
if (!TextUtils.isEmpty(liveGiftModel.getNamingLiveuid()) &&
|
if (!TextUtils.isEmpty(liveGiftModel.getNamingLiveuid()) &&
|
||||||
!TextUtils.isEmpty(liveGiftModel.getNamingUid()) &&
|
!TextUtils.isEmpty(liveGiftModel.getNamingUid()) &&
|
||||||
@ -759,6 +772,7 @@ public class LiveGiftPopup extends AbsDialogFragment {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (liveGiftModel.getType() == 7) {
|
if (liveGiftModel.getType() == 7) {
|
||||||
|
MobclickAgent.onEvent(mContext, "gif_list_blind_box", "用户点开礼物列表盲盒");
|
||||||
iconArrow.setVisibility(View.GONE);
|
iconArrow.setVisibility(View.GONE);
|
||||||
showBlindProgress(liveGiftModel.getBlind_box_type());
|
showBlindProgress(liveGiftModel.getBlind_box_type());
|
||||||
} else {
|
} else {
|
||||||
@ -1231,6 +1245,8 @@ public class LiveGiftPopup extends AbsDialogFragment {
|
|||||||
@Override
|
@Override
|
||||||
public void onConfirmClick(Dialog dialog, String content) {
|
public void onConfirmClick(Dialog dialog, String content) {
|
||||||
forwardMyCoin(0);
|
forwardMyCoin(0);
|
||||||
|
|
||||||
|
MobclickAgent.onEvent(mContext, "user_to_recharge", "app内任意提示用户余额不足 用户充值点了提示里面的去充值");
|
||||||
}
|
}
|
||||||
}).build().show();
|
}).build().show();
|
||||||
} else {
|
} else {
|
||||||
|
@ -27,6 +27,7 @@ import android.widget.RadioGroup;
|
|||||||
import androidx.fragment.app.FragmentActivity;
|
import androidx.fragment.app.FragmentActivity;
|
||||||
|
|
||||||
import com.blankj.utilcode.util.GsonUtils;
|
import com.blankj.utilcode.util.GsonUtils;
|
||||||
|
import com.umeng.analytics.MobclickAgent;
|
||||||
import com.yunbao.common.Constants;
|
import com.yunbao.common.Constants;
|
||||||
import com.yunbao.common.bean.BaseModel;
|
import com.yunbao.common.bean.BaseModel;
|
||||||
import com.yunbao.common.bean.NobleTrumpetModel;
|
import com.yunbao.common.bean.NobleTrumpetModel;
|
||||||
@ -143,6 +144,7 @@ public class LiveInputDialogFragment extends AbsDialogFragment implements View.O
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onTextChanged(CharSequence s, int start, int before, int count) {
|
public void onTextChanged(CharSequence s, int start, int before, int count) {
|
||||||
|
MobclickAgent.onEvent(mContext, "chat_btn_enter", "用户输入文字");
|
||||||
if (s.length() == 0) {
|
if (s.length() == 0) {
|
||||||
mMyRadioButton.doChecked(false);
|
mMyRadioButton.doChecked(false);
|
||||||
} else {
|
} else {
|
||||||
@ -190,6 +192,7 @@ public class LiveInputDialogFragment extends AbsDialogFragment implements View.O
|
|||||||
ViewClicksAntiShake.clicksAntiShake(mRootView.findViewById(R.id.ai_te), new ViewClicksAntiShake.ViewClicksCallBack() {
|
ViewClicksAntiShake.clicksAntiShake(mRootView.findViewById(R.id.ai_te), new ViewClicksAntiShake.ViewClicksCallBack() {
|
||||||
@Override
|
@Override
|
||||||
public void onViewClicks() {
|
public void onViewClicks() {
|
||||||
|
MobclickAgent.onEvent(mContext, "chat_btn_at", "用户点聊天框上的艾特");
|
||||||
Intent intent = new Intent(getActivity(), OlineListActivity.class);
|
Intent intent = new Intent(getActivity(), OlineListActivity.class);
|
||||||
intent.putExtra("liveID", mLiveUid);
|
intent.putExtra("liveID", mLiveUid);
|
||||||
intent.putExtra("stream", bundle.getString(Constants.LIVE_STREAM));
|
intent.putExtra("stream", bundle.getString(Constants.LIVE_STREAM));
|
||||||
@ -211,6 +214,7 @@ public class LiveInputDialogFragment extends AbsDialogFragment implements View.O
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
|
MobclickAgent.onEvent(mContext, "chat_btn_seed_msg", "用户点发送按钮");
|
||||||
sendMessage();
|
sendMessage();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -318,10 +322,12 @@ public class LiveInputDialogFragment extends AbsDialogFragment implements View.O
|
|||||||
mInput.setHint(mHint2);
|
mInput.setHint(mHint2);
|
||||||
messageType = SendMessageType.GENERALMESSAGE;
|
messageType = SendMessageType.GENERALMESSAGE;
|
||||||
} else if (radioButton.getId() == R.id.btn_1) {
|
} else if (radioButton.getId() == R.id.btn_1) {
|
||||||
|
MobclickAgent.onEvent(mContext, "chat_btn_wind", "用户点输入框上飘屏按钮");
|
||||||
radioButton.setCompoundDrawablesRelativeWithIntrinsicBounds(popupScreenP, null, null, null);
|
radioButton.setCompoundDrawablesRelativeWithIntrinsicBounds(popupScreenP, null, null, null);
|
||||||
mInput.setHint(mHint1);
|
mInput.setHint(mHint1);
|
||||||
messageType = SendMessageType.POPUPSCREEN;
|
messageType = SendMessageType.POPUPSCREEN;
|
||||||
} else {
|
} else {
|
||||||
|
MobclickAgent.onEvent(mContext, "chat_btn_trumpet", "用户点输入框上全站喇叭按钮");
|
||||||
radioButton.setCompoundDrawablesRelativeWithIntrinsicBounds(worldHornP, null, null, null);
|
radioButton.setCompoundDrawablesRelativeWithIntrinsicBounds(worldHornP, null, null, null);
|
||||||
mInput.setHint(String.format(mContext.getString(R.string.whole_station_horn_hint), trumpetNum + ""));
|
mInput.setHint(String.format(mContext.getString(R.string.whole_station_horn_hint), trumpetNum + ""));
|
||||||
messageType = SendMessageType.WORLDHORN;
|
messageType = SendMessageType.WORLDHORN;
|
||||||
|
@ -24,6 +24,7 @@ import com.opensource.svgaplayer.SVGAParser;
|
|||||||
import com.opensource.svgaplayer.SVGAVideoEntity;
|
import com.opensource.svgaplayer.SVGAVideoEntity;
|
||||||
import com.tencent.imsdk.v2.V2TIMCallback;
|
import com.tencent.imsdk.v2.V2TIMCallback;
|
||||||
import com.tencent.imsdk.v2.V2TIMManager;
|
import com.tencent.imsdk.v2.V2TIMManager;
|
||||||
|
import com.umeng.analytics.MobclickAgent;
|
||||||
import com.yunbao.common.CommonAppConfig;
|
import com.yunbao.common.CommonAppConfig;
|
||||||
import com.yunbao.common.Constants;
|
import com.yunbao.common.Constants;
|
||||||
import com.yunbao.common.bean.FansModel;
|
import com.yunbao.common.bean.FansModel;
|
||||||
@ -32,14 +33,17 @@ import com.yunbao.common.bean.LiveBean;
|
|||||||
import com.yunbao.common.bean.OlineUserlistModel;
|
import com.yunbao.common.bean.OlineUserlistModel;
|
||||||
import com.yunbao.common.bean.UserBean;
|
import com.yunbao.common.bean.UserBean;
|
||||||
import com.yunbao.common.dialog.AbsDialogFragment;
|
import com.yunbao.common.dialog.AbsDialogFragment;
|
||||||
|
import com.yunbao.common.event.LiveRoomChangeEvent;
|
||||||
import com.yunbao.common.glide.ImgLoader;
|
import com.yunbao.common.glide.ImgLoader;
|
||||||
import com.yunbao.common.http.CommonHttpUtil;
|
import com.yunbao.common.http.CommonHttpUtil;
|
||||||
import com.yunbao.common.http.HttpCallback;
|
import com.yunbao.common.http.HttpCallback;
|
||||||
|
import com.yunbao.common.http.LiveHttpUtil;
|
||||||
import com.yunbao.common.interfaces.CommonCallback;
|
import com.yunbao.common.interfaces.CommonCallback;
|
||||||
import com.yunbao.common.manager.NewLevelManager;
|
import com.yunbao.common.manager.NewLevelManager;
|
||||||
import com.yunbao.common.utils.Bus;
|
import com.yunbao.common.utils.Bus;
|
||||||
import com.yunbao.common.utils.CommonIconUtil;
|
import com.yunbao.common.utils.CommonIconUtil;
|
||||||
import com.yunbao.common.utils.DialogUitl;
|
import com.yunbao.common.utils.DialogUitl;
|
||||||
|
import com.yunbao.common.utils.LiveRoomCheckLivePresenter;
|
||||||
import com.yunbao.common.utils.MicStatusManager;
|
import com.yunbao.common.utils.MicStatusManager;
|
||||||
import com.yunbao.common.utils.NobleUtil;
|
import com.yunbao.common.utils.NobleUtil;
|
||||||
import com.yunbao.common.utils.RouteUtil;
|
import com.yunbao.common.utils.RouteUtil;
|
||||||
@ -52,9 +56,6 @@ import com.yunbao.live.activity.LiveActivity;
|
|||||||
import com.yunbao.live.activity.LiveReportActivity;
|
import com.yunbao.live.activity.LiveReportActivity;
|
||||||
import com.yunbao.live.activity.LiveRyAnchorActivity;
|
import com.yunbao.live.activity.LiveRyAnchorActivity;
|
||||||
import com.yunbao.live.event.LiveAudienceEvent;
|
import com.yunbao.live.event.LiveAudienceEvent;
|
||||||
import com.yunbao.common.event.LiveRoomChangeEvent;
|
|
||||||
import com.yunbao.common.http.LiveHttpUtil;
|
|
||||||
import com.yunbao.common.utils.LiveRoomCheckLivePresenter;
|
|
||||||
import com.yunbao.live.utils.LiveTextRender;
|
import com.yunbao.live.utils.LiveTextRender;
|
||||||
|
|
||||||
import org.greenrobot.eventbus.EventBus;
|
import org.greenrobot.eventbus.EventBus;
|
||||||
@ -249,7 +250,18 @@ public class LiveUserDialogFragment extends AbsDialogFragment implements View.On
|
|||||||
mLvVal = mRootView.findViewById(R.id.user_card_lv_val);
|
mLvVal = mRootView.findViewById(R.id.user_card_lv_val);
|
||||||
mNobleIconLayout.setOnClickListener(this);
|
mNobleIconLayout.setOnClickListener(this);
|
||||||
mSetting.setOnClickListener(this);
|
mSetting.setOnClickListener(this);
|
||||||
mHonorLayout.setOnClickListener(v -> forwardHomePage());
|
mHonorLayout.setOnClickListener(new View.OnClickListener() {
|
||||||
|
@Override
|
||||||
|
public void onClick(View view) {
|
||||||
|
if (!isAnchor) {
|
||||||
|
MobclickAgent.onEvent(mContext, "user_avatar_honor", "荣誉墙按钮");
|
||||||
|
} else {
|
||||||
|
|
||||||
|
MobclickAgent.onEvent(mContext, "anchor_avatar_honor", "主播荣誉墙");
|
||||||
|
}
|
||||||
|
forwardHomePage();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
//用户名片连点三次粉丝弹出视频debug窗
|
//用户名片连点三次粉丝弹出视频debug窗
|
||||||
/*mFansVal.setOnClickListener(new View.OnClickListener() {
|
/*mFansVal.setOnClickListener(new View.OnClickListener() {
|
||||||
@ -610,6 +622,7 @@ public class LiveUserDialogFragment extends AbsDialogFragment implements View.On
|
|||||||
* 跳转到个人主页
|
* 跳转到个人主页
|
||||||
*/
|
*/
|
||||||
private void forwardHomePage() {
|
private void forwardHomePage() {
|
||||||
|
|
||||||
dismiss();
|
dismiss();
|
||||||
Constants.mStream = mStream;
|
Constants.mStream = mStream;
|
||||||
RouteUtil.forwardUserHome(mContext, mToUid, true, mLiveUid, 0);
|
RouteUtil.forwardUserHome(mContext, mToUid, true, mLiveUid, 0);
|
||||||
@ -702,14 +715,30 @@ public class LiveUserDialogFragment extends AbsDialogFragment implements View.On
|
|||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
int i = v.getId();
|
int i = v.getId();
|
||||||
if (i == R.id.btn_follow) {
|
if (i == R.id.btn_follow) {
|
||||||
|
if (isAnchor) {
|
||||||
|
|
||||||
|
MobclickAgent.onEvent(mContext, "anchor_avatar_follow", "点关注主播");
|
||||||
|
} else {
|
||||||
|
|
||||||
|
MobclickAgent.onEvent(mContext, "user_avatar_follow", "点关注用户");
|
||||||
|
}
|
||||||
setAttention();
|
setAttention();
|
||||||
} else if (i == R.id.btn_home_page) {
|
} else if (i == R.id.btn_home_page) {
|
||||||
|
if (isAnchor) {
|
||||||
|
MobclickAgent.onEvent(mContext, "anchor_avatar_index", "点主播主页");
|
||||||
|
} else {
|
||||||
|
MobclickAgent.onEvent(mContext, "user_avatar_index", "主页按钮");
|
||||||
|
}
|
||||||
forwardHomePage();
|
forwardHomePage();
|
||||||
} else if (i == R.id.btn_report) {
|
} else if (i == R.id.btn_report) {
|
||||||
report();
|
report();
|
||||||
} else if (i == R.id.avatar) {
|
} else if (i == R.id.avatar) {
|
||||||
|
if (isAnchor) {
|
||||||
|
MobclickAgent.onEvent(mContext, "anchor_avatar_btn", "点主播头像");
|
||||||
|
}
|
||||||
forwardHomePage();
|
forwardHomePage();
|
||||||
} else if (i == R.id.btn_guard) {
|
} else if (i == R.id.btn_guard) {
|
||||||
|
MobclickAgent.onEvent(mContext, "anchor_avatar_guard", "守护按钮");
|
||||||
((LiveActivity) mContext).openNewGuardListWindow(mContext instanceof LiveRyAnchorActivity, mToUid);
|
((LiveActivity) mContext).openNewGuardListWindow(mContext instanceof LiveRyAnchorActivity, mToUid);
|
||||||
} else if (i == R.id.btn_live) {
|
} else if (i == R.id.btn_live) {
|
||||||
gotoLive(mToUid);
|
gotoLive(mToUid);
|
||||||
@ -718,6 +747,7 @@ public class LiveUserDialogFragment extends AbsDialogFragment implements View.On
|
|||||||
dismiss();
|
dismiss();
|
||||||
((LiveActivity) mContext).openFansWindow(mToUid);
|
((LiveActivity) mContext).openFansWindow(mToUid);
|
||||||
} else {
|
} else {
|
||||||
|
MobclickAgent.onEvent(mContext, "user_avatar_noble", "贵族按钮");
|
||||||
Bus.get().post(new LiveAudienceEvent()
|
Bus.get().post(new LiveAudienceEvent()
|
||||||
.setType(LiveAudienceEvent.LiveAudienceType.NOBLE));
|
.setType(LiveAudienceEvent.LiveAudienceType.NOBLE));
|
||||||
}
|
}
|
||||||
|
@ -16,6 +16,7 @@ import androidx.annotation.NonNull;
|
|||||||
|
|
||||||
import com.alibaba.android.arouter.launcher.ARouter;
|
import com.alibaba.android.arouter.launcher.ARouter;
|
||||||
import com.lxj.xpopup.core.CenterPopupView;
|
import com.lxj.xpopup.core.CenterPopupView;
|
||||||
|
import com.umeng.analytics.MobclickAgent;
|
||||||
import com.yunbao.common.http.base.HttpCallback;
|
import com.yunbao.common.http.base.HttpCallback;
|
||||||
import com.yunbao.common.http.live.LiveNetManager;
|
import com.yunbao.common.http.live.LiveNetManager;
|
||||||
import com.yunbao.common.utils.ToastUtil;
|
import com.yunbao.common.utils.ToastUtil;
|
||||||
@ -156,7 +157,13 @@ public class SendRendPacketPopup extends CenterPopupView {
|
|||||||
//红包初始数量
|
//红包初始数量
|
||||||
rill.setText("200");
|
rill.setText("200");
|
||||||
total.setText("10");
|
total.setText("10");
|
||||||
ViewClicksAntiShake.clicksAntiShake(iconInstructions, () -> redPacketIllustrate.setVisibility(VISIBLE));
|
ViewClicksAntiShake.clicksAntiShake(iconInstructions, new ViewClicksAntiShake.ViewClicksCallBack() {
|
||||||
|
@Override
|
||||||
|
public void onViewClicks() {
|
||||||
|
MobclickAgent.onEvent(getContext(), "gif_list_redpk_info", "用户点开礼物列表红包页面的红包说明");
|
||||||
|
redPacketIllustrate.setVisibility(VISIBLE);
|
||||||
|
}
|
||||||
|
});
|
||||||
ViewClicksAntiShake.clicksAntiShake(illustrateClose, () -> redPacketIllustrate.setVisibility(GONE));
|
ViewClicksAntiShake.clicksAntiShake(illustrateClose, () -> redPacketIllustrate.setVisibility(GONE));
|
||||||
ViewClicksAntiShake.clicksAntiShake(findViewById(R.id.top_up_now), () -> {
|
ViewClicksAntiShake.clicksAntiShake(findViewById(R.id.top_up_now), () -> {
|
||||||
//我们的
|
//我们的
|
||||||
@ -201,6 +208,8 @@ public class SendRendPacketPopup extends CenterPopupView {
|
|||||||
conditions, new HttpCallback<String>() {
|
conditions, new HttpCallback<String>() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(String data) {
|
public void onSuccess(String data) {
|
||||||
|
|
||||||
|
MobclickAgent.onEvent(getContext(), "gif_list_redpk_seed", "用户发送红包");
|
||||||
ToastUtil.show(getContext().getString(R.string.red_envelope_released_successfully));
|
ToastUtil.show(getContext().getString(R.string.red_envelope_released_successfully));
|
||||||
dismiss();
|
dismiss();
|
||||||
}
|
}
|
||||||
|
@ -5,6 +5,7 @@ import android.view.View;
|
|||||||
import android.view.ViewGroup;
|
import android.view.ViewGroup;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
|
|
||||||
|
import com.umeng.analytics.MobclickAgent;
|
||||||
import com.yunbao.common.views.AbsViewHolder;
|
import com.yunbao.common.views.AbsViewHolder;
|
||||||
import com.yunbao.live.R;
|
import com.yunbao.live.R;
|
||||||
import com.yunbao.live.activity.LiveActivity;
|
import com.yunbao.live.activity.LiveActivity;
|
||||||
@ -37,8 +38,10 @@ public abstract class AbsLiveViewHolder extends AbsViewHolder implements View.On
|
|||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
int i = v.getId();
|
int i = v.getId();
|
||||||
if (i == R.id.btn_msg) {
|
if (i == R.id.btn_msg) {
|
||||||
|
MobclickAgent.onEvent(mContext, "live_room_envelope", "直播间信封按钮");
|
||||||
((LiveActivity) mContext).openChatListWindow();
|
((LiveActivity) mContext).openChatListWindow();
|
||||||
} else if (i == R.id.et_input) {
|
} else if (i == R.id.et_input) {
|
||||||
|
MobclickAgent.onEvent(mContext, "live_room_chat_btn", "直播间点开最下面的聊天按钮");
|
||||||
((LiveActivity) mContext).openChatWindow();
|
((LiveActivity) mContext).openChatWindow();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -19,6 +19,7 @@ import androidx.recyclerview.widget.GridLayoutManager;
|
|||||||
import androidx.recyclerview.widget.RecyclerView;
|
import androidx.recyclerview.widget.RecyclerView;
|
||||||
|
|
||||||
import com.lxj.xpopup.XPopup;
|
import com.lxj.xpopup.XPopup;
|
||||||
|
import com.umeng.analytics.MobclickAgent;
|
||||||
import com.yunbao.common.bean.LiveGiftBean;
|
import com.yunbao.common.bean.LiveGiftBean;
|
||||||
import com.yunbao.common.event.LiveGiftDialogEvent;
|
import com.yunbao.common.event.LiveGiftDialogEvent;
|
||||||
import com.yunbao.common.glide.ImgLoader;
|
import com.yunbao.common.glide.ImgLoader;
|
||||||
@ -150,6 +151,7 @@ public class FrameGiftViewHolder extends RecyclerView.ViewHolder {
|
|||||||
@Override
|
@Override
|
||||||
public void onViewClicks() {
|
public void onViewClicks() {
|
||||||
if (model.getType() == 9999999) {
|
if (model.getType() == 9999999) {
|
||||||
|
MobclickAgent.onEvent(mContext, "gif_list_redpk", "用户点开礼物列表红包");
|
||||||
Bus.get().post(new LiveGiftDialogEvent());
|
Bus.get().post(new LiveGiftDialogEvent());
|
||||||
new XPopup.Builder(mContext)
|
new XPopup.Builder(mContext)
|
||||||
.asCustom(new SendRendPacketPopup(mContext, mLiveUid))
|
.asCustom(new SendRendPacketPopup(mContext, mLiveUid))
|
||||||
|
@ -6,6 +6,7 @@ import android.view.View;
|
|||||||
import androidx.annotation.NonNull;
|
import androidx.annotation.NonNull;
|
||||||
import androidx.recyclerview.widget.RecyclerView;
|
import androidx.recyclerview.widget.RecyclerView;
|
||||||
|
|
||||||
|
import com.umeng.analytics.MobclickAgent;
|
||||||
import com.yunbao.common.custom.DrawableTextView;
|
import com.yunbao.common.custom.DrawableTextView;
|
||||||
import com.yunbao.common.utils.Bus;
|
import com.yunbao.common.utils.Bus;
|
||||||
import com.yunbao.common.views.weight.ViewClicksAntiShake;
|
import com.yunbao.common.views.weight.ViewClicksAntiShake;
|
||||||
@ -34,8 +35,33 @@ public class GiftTitleViewHolder extends RecyclerView.ViewHolder {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
public void selectData(boolean isSelect) {
|
public void selectData(boolean isSelect, String typeName) {
|
||||||
if (isSelect) {
|
if (isSelect) {
|
||||||
|
switch (typeName) {
|
||||||
|
case "熱門":
|
||||||
|
case "Hot":
|
||||||
|
MobclickAgent.onEvent(itemView.getContext(), "gif_list_hot_list", "用户点礼物栏热门礼物按钮");
|
||||||
|
break;
|
||||||
|
case "貴族":
|
||||||
|
case "Aristocrats":
|
||||||
|
MobclickAgent.onEvent(itemView.getContext(), "gif_list_noble_list", "用户点礼物栏贵族礼物按钮");
|
||||||
|
break;
|
||||||
|
case "守護":
|
||||||
|
case "Guard":
|
||||||
|
MobclickAgent.onEvent(itemView.getContext(), "gif_list_guard_list", "用户点礼物栏守护礼物按钮");
|
||||||
|
break;
|
||||||
|
case "粉絲團":
|
||||||
|
case "Fans":
|
||||||
|
MobclickAgent.onEvent(itemView.getContext(), "gif_list_fan_list", "用户点礼物栏粉丝团礼物按钮");
|
||||||
|
break;
|
||||||
|
case "專屬":
|
||||||
|
case "exclusive":
|
||||||
|
MobclickAgent.onEvent(itemView.getContext(), "gif_list_exclusive_list", "用户点礼物栏专属礼物按钮");
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
MobclickAgent.onEvent(itemView.getContext(), "gif_list_other_list", "用户点礼物栏其他新配置的礼物分类按钮:"+typeName);
|
||||||
|
break;
|
||||||
|
}
|
||||||
name.setAlpha(1.0f);
|
name.setAlpha(1.0f);
|
||||||
name.setTypeface(Typeface.SANS_SERIF, Typeface.BOLD);
|
name.setTypeface(Typeface.SANS_SERIF, Typeface.BOLD);
|
||||||
} else {
|
} else {
|
||||||
|
@ -25,6 +25,7 @@ import android.widget.ViewFlipper;
|
|||||||
import androidx.fragment.app.FragmentActivity;
|
import androidx.fragment.app.FragmentActivity;
|
||||||
|
|
||||||
import com.lxj.xpopup.XPopup;
|
import com.lxj.xpopup.XPopup;
|
||||||
|
import com.umeng.analytics.MobclickAgent;
|
||||||
import com.yunbao.common.CommonAppConfig;
|
import com.yunbao.common.CommonAppConfig;
|
||||||
import com.yunbao.common.Constants;
|
import com.yunbao.common.Constants;
|
||||||
import com.yunbao.common.bean.NewPeopleInfo;
|
import com.yunbao.common.bean.NewPeopleInfo;
|
||||||
@ -161,6 +162,7 @@ public class LiveAudienceViewHolder extends AbsLiveViewHolder {
|
|||||||
ViewClicksAntiShake.clicksAntiShake(findViewById(R.id.total_image), new ViewClicksAntiShake.ViewClicksCallBack() {
|
ViewClicksAntiShake.clicksAntiShake(findViewById(R.id.total_image), new ViewClicksAntiShake.ViewClicksCallBack() {
|
||||||
@Override
|
@Override
|
||||||
public void onViewClicks() {
|
public void onViewClicks() {
|
||||||
|
MobclickAgent.onEvent(mContext, "live_room_more_sett", "直播间侧边栏更多设置");
|
||||||
Bus.get().post(new LiveAudienceEvent()
|
Bus.get().post(new LiveAudienceEvent()
|
||||||
.setActivity(false)
|
.setActivity(false)
|
||||||
.setType(LiveAudienceEvent.LiveAudienceType.BOTTOM_COLLECTION));
|
.setType(LiveAudienceEvent.LiveAudienceType.BOTTOM_COLLECTION));
|
||||||
@ -181,6 +183,7 @@ public class LiveAudienceViewHolder extends AbsLiveViewHolder {
|
|||||||
ViewClicksAntiShake.clicksAntiShake(findViewById(R.id.live_cheat), new ViewClicksAntiShake.ViewClicksCallBack() {
|
ViewClicksAntiShake.clicksAntiShake(findViewById(R.id.live_cheat), new ViewClicksAntiShake.ViewClicksCallBack() {
|
||||||
@Override
|
@Override
|
||||||
public void onViewClicks() {
|
public void onViewClicks() {
|
||||||
|
MobclickAgent.onEvent(mContext, "live_room_h5_game", "直播间任意点用户头像");
|
||||||
Bus.get().post(new LiveAudienceEvent()
|
Bus.get().post(new LiveAudienceEvent()
|
||||||
.setType(LiveAudienceEvent.LiveAudienceType.WE_CHEAT));
|
.setType(LiveAudienceEvent.LiveAudienceType.WE_CHEAT));
|
||||||
|
|
||||||
@ -206,6 +209,7 @@ public class LiveAudienceViewHolder extends AbsLiveViewHolder {
|
|||||||
// ImgLoader.display(mContext, TextUtils.equals(language, "zh") ? R.mipmap.live_icon_cheat : R.mipmap.live_icon_cheat_en, mCheat);
|
// ImgLoader.display(mContext, TextUtils.equals(language, "zh") ? R.mipmap.live_icon_cheat : R.mipmap.live_icon_cheat_en, mCheat);
|
||||||
|
|
||||||
voiceButton.setOnTouchListener((v, event) -> {
|
voiceButton.setOnTouchListener((v, event) -> {
|
||||||
|
MobclickAgent.onEvent(mContext, "live_room_voice_chat_btn", "直播间点开最下面的语音输入的聊天按钮");
|
||||||
if (event.getAction() == MotionEvent.ACTION_DOWN) {
|
if (event.getAction() == MotionEvent.ACTION_DOWN) {
|
||||||
downY = event.getY();
|
downY = event.getY();
|
||||||
if (mProcessResultUtil.checkPermissions(new String[]{Manifest.permission.RECORD_AUDIO})) {
|
if (mProcessResultUtil.checkPermissions(new String[]{Manifest.permission.RECORD_AUDIO})) {
|
||||||
@ -384,6 +388,7 @@ public class LiveAudienceViewHolder extends AbsLiveViewHolder {
|
|||||||
} else if (i == R.id.live_new_people) {
|
} else if (i == R.id.live_new_people) {
|
||||||
openNewPeopleDialog();
|
openNewPeopleDialog();
|
||||||
} else if (i == R.id.live_privilege) {
|
} else if (i == R.id.live_privilege) {
|
||||||
|
MobclickAgent.onEvent(mContext, "live_room_privilege", "直播间下面打开皇冠按钮");
|
||||||
openRoleDialog();
|
openRoleDialog();
|
||||||
} else if (i == R.id.live_cheat) {
|
} else if (i == R.id.live_cheat) {
|
||||||
|
|
||||||
|
@ -14,6 +14,7 @@ import androidx.fragment.app.Fragment;
|
|||||||
import androidx.viewpager.widget.ViewPager;
|
import androidx.viewpager.widget.ViewPager;
|
||||||
|
|
||||||
import com.alibaba.fastjson.JSON;
|
import com.alibaba.fastjson.JSON;
|
||||||
|
import com.umeng.analytics.MobclickAgent;
|
||||||
import com.yunbao.common.bean.LiveGiftBean;
|
import com.yunbao.common.bean.LiveGiftBean;
|
||||||
import com.yunbao.common.fragment.BaseFragment;
|
import com.yunbao.common.fragment.BaseFragment;
|
||||||
import com.yunbao.live.R;
|
import com.yunbao.live.R;
|
||||||
@ -117,6 +118,7 @@ public class LiveGiftFragment extends BaseFragment {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onPageSelected(int position) {
|
public void onPageSelected(int position) {
|
||||||
|
MobclickAgent.onEvent(getContext(), "gif_list_slide", "用户左右滑动礼物列表");
|
||||||
if (mRadioGroup != null && mRadioGroup.getChildAt(position) != null) {
|
if (mRadioGroup != null && mRadioGroup.getChildAt(position) != null) {
|
||||||
((RadioButton) mRadioGroup.getChildAt(position)).setChecked(true);
|
((RadioButton) mRadioGroup.getChildAt(position)).setChecked(true);
|
||||||
}
|
}
|
||||||
|
@ -60,6 +60,7 @@ import com.opensource.svgaplayer.SVGADrawable;
|
|||||||
import com.opensource.svgaplayer.SVGAImageView;
|
import com.opensource.svgaplayer.SVGAImageView;
|
||||||
import com.opensource.svgaplayer.SVGAParser;
|
import com.opensource.svgaplayer.SVGAParser;
|
||||||
import com.opensource.svgaplayer.SVGAVideoEntity;
|
import com.opensource.svgaplayer.SVGAVideoEntity;
|
||||||
|
import com.umeng.analytics.MobclickAgent;
|
||||||
import com.yunbao.common.CommonAppConfig;
|
import com.yunbao.common.CommonAppConfig;
|
||||||
import com.yunbao.common.Constants;
|
import com.yunbao.common.Constants;
|
||||||
import com.yunbao.common.activity.AbsActivity;
|
import com.yunbao.common.activity.AbsActivity;
|
||||||
@ -96,11 +97,14 @@ import com.yunbao.common.bean.XydCompleteModel;
|
|||||||
import com.yunbao.common.event.AllServerNotifyEvent;
|
import com.yunbao.common.event.AllServerNotifyEvent;
|
||||||
import com.yunbao.common.event.AnchorInfoEvent;
|
import com.yunbao.common.event.AnchorInfoEvent;
|
||||||
import com.yunbao.common.event.CustomFullServiceNotifyEvent;
|
import com.yunbao.common.event.CustomFullServiceNotifyEvent;
|
||||||
|
import com.yunbao.common.event.LiveRoomChangeEvent;
|
||||||
import com.yunbao.common.glide.ImgLoader;
|
import com.yunbao.common.glide.ImgLoader;
|
||||||
import com.yunbao.common.http.API;
|
import com.yunbao.common.http.API;
|
||||||
import com.yunbao.common.http.CommonHttpConsts;
|
import com.yunbao.common.http.CommonHttpConsts;
|
||||||
import com.yunbao.common.http.CommonHttpUtil;
|
import com.yunbao.common.http.CommonHttpUtil;
|
||||||
import com.yunbao.common.http.HttpCallback;
|
import com.yunbao.common.http.HttpCallback;
|
||||||
|
import com.yunbao.common.http.LiveHttpConsts;
|
||||||
|
import com.yunbao.common.http.LiveHttpUtil;
|
||||||
import com.yunbao.common.http.live.LiveNetManager;
|
import com.yunbao.common.http.live.LiveNetManager;
|
||||||
import com.yunbao.common.interfaces.CommonCallback;
|
import com.yunbao.common.interfaces.CommonCallback;
|
||||||
import com.yunbao.common.interfaces.OnItemClickListener;
|
import com.yunbao.common.interfaces.OnItemClickListener;
|
||||||
@ -111,6 +115,7 @@ import com.yunbao.common.utils.Bus;
|
|||||||
import com.yunbao.common.utils.DeviceUtils;
|
import com.yunbao.common.utils.DeviceUtils;
|
||||||
import com.yunbao.common.utils.DialogUitl;
|
import com.yunbao.common.utils.DialogUitl;
|
||||||
import com.yunbao.common.utils.DpUtil;
|
import com.yunbao.common.utils.DpUtil;
|
||||||
|
import com.yunbao.common.utils.LiveRoomCheckLivePresenter;
|
||||||
import com.yunbao.common.utils.MicStatusManager;
|
import com.yunbao.common.utils.MicStatusManager;
|
||||||
import com.yunbao.common.utils.RouteUtil;
|
import com.yunbao.common.utils.RouteUtil;
|
||||||
import com.yunbao.common.utils.SVGAViewUtils;
|
import com.yunbao.common.utils.SVGAViewUtils;
|
||||||
@ -162,14 +167,10 @@ import com.yunbao.live.dialog.ReceiveRendPacketPopup;
|
|||||||
import com.yunbao.live.dialog.ResultRendPacketPopup;
|
import com.yunbao.live.dialog.ResultRendPacketPopup;
|
||||||
import com.yunbao.live.event.LiveAnchorEvent;
|
import com.yunbao.live.event.LiveAnchorEvent;
|
||||||
import com.yunbao.live.event.LiveAudienceEvent;
|
import com.yunbao.live.event.LiveAudienceEvent;
|
||||||
import com.yunbao.common.event.LiveRoomChangeEvent;
|
|
||||||
import com.yunbao.common.http.LiveHttpConsts;
|
|
||||||
import com.yunbao.common.http.LiveHttpUtil;
|
|
||||||
import com.yunbao.live.presenter.LiveDanmuPresenter;
|
import com.yunbao.live.presenter.LiveDanmuPresenter;
|
||||||
import com.yunbao.live.presenter.LiveEnterRoomAnimPresenter;
|
import com.yunbao.live.presenter.LiveEnterRoomAnimPresenter;
|
||||||
import com.yunbao.live.presenter.LiveGiftAnimPresenter;
|
import com.yunbao.live.presenter.LiveGiftAnimPresenter;
|
||||||
import com.yunbao.live.presenter.LiveLightAnimPresenter;
|
import com.yunbao.live.presenter.LiveLightAnimPresenter;
|
||||||
import com.yunbao.common.utils.LiveRoomCheckLivePresenter;
|
|
||||||
import com.yunbao.live.utils.LiveRoomVoteManager;
|
import com.yunbao.live.utils.LiveRoomVoteManager;
|
||||||
import com.yunbao.live.utils.LiveTextRender;
|
import com.yunbao.live.utils.LiveTextRender;
|
||||||
import com.yunbao.live.utils.LoadDian9TuUtil;
|
import com.yunbao.live.utils.LoadDian9TuUtil;
|
||||||
@ -182,8 +183,10 @@ import java.lang.ref.WeakReference;
|
|||||||
import java.net.MalformedURLException;
|
import java.net.MalformedURLException;
|
||||||
import java.net.URL;
|
import java.net.URL;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Locale;
|
import java.util.Locale;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
import io.reactivex.android.schedulers.AndroidSchedulers;
|
import io.reactivex.android.schedulers.AndroidSchedulers;
|
||||||
import io.reactivex.schedulers.Schedulers;
|
import io.reactivex.schedulers.Schedulers;
|
||||||
@ -886,7 +889,20 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
mAnchorSayImage = (ImageView) findViewById(R.id.anchor_say_icon);
|
mAnchorSayImage = (ImageView) findViewById(R.id.anchor_say_icon);
|
||||||
mAnchorSayText = (TextView) findViewById(R.id.anchor_say_text);
|
mAnchorSayText = (TextView) findViewById(R.id.anchor_say_text);
|
||||||
mAnchorSayHide = (ImageView) findViewById(R.id.anchor_say_hide);
|
mAnchorSayHide = (ImageView) findViewById(R.id.anchor_say_hide);
|
||||||
mAnchorSayHide.setOnClickListener(v -> hideAnchorSay());
|
mAnchorSayHide.setOnClickListener(new View.OnClickListener() {
|
||||||
|
@Override
|
||||||
|
public void onClick(View view) {
|
||||||
|
MobclickAgent.onEvent(mContext, "live_room_goddess_say", "女神说按钮");
|
||||||
|
hideAnchorSay();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
mAnchorSay.setOnClickListener(new View.OnClickListener() {
|
||||||
|
@Override
|
||||||
|
public void onClick(View view) {
|
||||||
|
MobclickAgent.onEvent(mContext, "live_room_goddess_say", "女神说按钮");
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
svga_new_user_gif = (SVGAImageView) findViewById(R.id.svga_new_user_gif);
|
svga_new_user_gif = (SVGAImageView) findViewById(R.id.svga_new_user_gif);
|
||||||
svga_new_user_double = (SVGAImageView) findViewById(R.id.svga_new_user_double);
|
svga_new_user_double = (SVGAImageView) findViewById(R.id.svga_new_user_double);
|
||||||
svga_new_user_follow = (SVGAImageView) findViewById(R.id.svga_new_user_follow);
|
svga_new_user_follow = (SVGAImageView) findViewById(R.id.svga_new_user_follow);
|
||||||
@ -1765,6 +1781,8 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
StringBuffer htmlUrl = new StringBuffer();
|
StringBuffer htmlUrl = new StringBuffer();
|
||||||
//判断是否是星级活动
|
//判断是否是星级活动
|
||||||
if (bean.isStart()) {
|
if (bean.isStart()) {
|
||||||
|
|
||||||
|
|
||||||
type = bean.getModel().getType();
|
type = bean.getModel().getType();
|
||||||
htmlUrl.append(CommonAppConfig.HOST)
|
htmlUrl.append(CommonAppConfig.HOST)
|
||||||
.append("/")
|
.append("/")
|
||||||
@ -1781,7 +1799,9 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
.append(System.currentTimeMillis())
|
.append(System.currentTimeMillis())
|
||||||
.append("&isZh=")
|
.append("&isZh=")
|
||||||
.append(((IMLoginManager.get(mContext).getLocaleLanguage() == Locale.SIMPLIFIED_CHINESE) ? "1" : "0"));
|
.append(((IMLoginManager.get(mContext).getLocaleLanguage() == Locale.SIMPLIFIED_CHINESE) ? "1" : "0"));
|
||||||
|
Map<String, String> map_ekv = new HashMap<String, String>();
|
||||||
|
map_ekv.put("link", htmlUrl.toString());
|
||||||
|
MobclickAgent.onEvent(mContext, "live_room_star", map_ekv);
|
||||||
} else {
|
} else {
|
||||||
type = bean.getShow_type();
|
type = bean.getShow_type();
|
||||||
htmlUrl.append(bean.getLink())
|
htmlUrl.append(bean.getLink())
|
||||||
@ -2105,6 +2125,8 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
flipper.startFlipping();
|
flipper.startFlipping();
|
||||||
|
|
||||||
flipper.setOnClickListener(view -> {
|
flipper.setOnClickListener(view -> {
|
||||||
|
|
||||||
|
MobclickAgent.onEvent(mContext, "live_room_hot", "热度按钮");
|
||||||
Bundle bundle = new Bundle();
|
Bundle bundle = new Bundle();
|
||||||
String path = model.getHourchartH5Url();
|
String path = model.getHourchartH5Url();
|
||||||
if (!path.startsWith("/")) {
|
if (!path.startsWith("/")) {
|
||||||
@ -2261,6 +2283,8 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
if (bean != null) {
|
if (bean != null) {
|
||||||
initPkRankView(bean);
|
initPkRankView(bean);
|
||||||
if (!StringUtil.isEmpty(bean.getClickUrl())) {
|
if (!StringUtil.isEmpty(bean.getClickUrl())) {
|
||||||
|
|
||||||
|
MobclickAgent.onEvent(mContext, "live_room_sky", "天梯赛按钮");
|
||||||
pkRankVf.setOnClickListener(v -> {
|
pkRankVf.setOnClickListener(v -> {
|
||||||
Bundle bundle = new Bundle();
|
Bundle bundle = new Bundle();
|
||||||
String path = bean.getClickUrl();
|
String path = bean.getClickUrl();
|
||||||
@ -2890,8 +2914,14 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
ViewClicksAntiShake.clicksAntiShake(weekView, () -> Bus.get().post(new LiveAudienceEvent()
|
ViewClicksAntiShake.clicksAntiShake(weekView, new ViewClicksAntiShake.ViewClicksCallBack() {
|
||||||
.setType(LiveAudienceEvent.LiveAudienceType.LIVE_WKS)));
|
@Override
|
||||||
|
public void onViewClicks() {
|
||||||
|
MobclickAgent.onEvent(mContext, "live_room_week", "周星榜按钮");
|
||||||
|
Bus.get().post(new LiveAudienceEvent()
|
||||||
|
.setType(LiveAudienceEvent.LiveAudienceType.LIVE_WKS));
|
||||||
|
}
|
||||||
|
});
|
||||||
wksAndGiftWall.addView(weekView);
|
wksAndGiftWall.addView(weekView);
|
||||||
wksAndGiftWall.startFlipping();
|
wksAndGiftWall.startFlipping();
|
||||||
new LoadDian9TuUtil().loadDian9TuAssets2(mContext, liveWksLayout, "rectangle_new.png", 1);
|
new LoadDian9TuUtil().loadDian9TuAssets2(mContext, liveWksLayout, "rectangle_new.png", 1);
|
||||||
@ -2931,9 +2961,11 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (i == R.id.avatar) {
|
if (i == R.id.avatar) {
|
||||||
|
MobclickAgent.onEvent(mContext, "live_room_anchor_avatar", "点主播头像");
|
||||||
showAnchorUserDialog();
|
showAnchorUserDialog();
|
||||||
|
|
||||||
} else if (i == R.id.btn_follow) {
|
} else if (i == R.id.btn_follow) {
|
||||||
|
MobclickAgent.onEvent(mContext, "live_room_follow_anchor", "直播间左上角关注主播按钮");
|
||||||
follow();
|
follow();
|
||||||
if (((LiveAudienceActivity) mContext).getCountDownTimer() != null) {
|
if (((LiveAudienceActivity) mContext).getCountDownTimer() != null) {
|
||||||
((LiveAudienceActivity) mContext).getCountDownTimer().cancel();
|
((LiveAudienceActivity) mContext).getCountDownTimer().cancel();
|
||||||
@ -2957,11 +2989,13 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
} else if (i == R.id.btn_prize_pool_level) {
|
} else if (i == R.id.btn_prize_pool_level) {
|
||||||
((LiveActivity) mContext).openPrizePoolWindow();
|
((LiveActivity) mContext).openPrizePoolWindow();
|
||||||
} else if (i == R.id.user_more) {
|
} else if (i == R.id.user_more) {
|
||||||
|
MobclickAgent.onEvent(mContext, "live_room_audience_list", "直播间上面点观众列表按钮");
|
||||||
((LiveActivity) mContext).openUserMoreListWindow(1, false, false, mContext instanceof LiveRyAnchorActivity);
|
((LiveActivity) mContext).openUserMoreListWindow(1, false, false, mContext instanceof LiveRyAnchorActivity);
|
||||||
} else if (i == R.id.hot_btn) {
|
} else if (i == R.id.hot_btn) {
|
||||||
((LiveActivity) mContext).openUserMoreListWindow(1, false, false, mContext instanceof LiveRyAnchorActivity);
|
((LiveActivity) mContext).openUserMoreListWindow(1, false, false, mContext instanceof LiveRyAnchorActivity);
|
||||||
|
|
||||||
} else if (i == R.id.noble_seat) {
|
} else if (i == R.id.noble_seat) {
|
||||||
|
MobclickAgent.onEvent(mContext, "live_room_noble", "贵族按钮");
|
||||||
((LiveActivity) mContext).openUserMoreListWindow(1, false, true, mContext instanceof LiveRyAnchorActivity);
|
((LiveActivity) mContext).openUserMoreListWindow(1, false, true, mContext instanceof LiveRyAnchorActivity);
|
||||||
} else if (i == R.id.btn_close) {
|
} else if (i == R.id.btn_close) {
|
||||||
close();
|
close();
|
||||||
@ -3403,6 +3437,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
*/
|
*/
|
||||||
public void showUserDialog(String toUid) {
|
public void showUserDialog(String toUid) {
|
||||||
if (!TextUtils.isEmpty(mLiveUid) && !TextUtils.isEmpty(toUid)) {
|
if (!TextUtils.isEmpty(mLiveUid) && !TextUtils.isEmpty(toUid)) {
|
||||||
|
MobclickAgent.onEvent(mContext, "live_room_user_avatar", "直播间任意点用户头像");
|
||||||
LiveUserDialogFragment fragment = new LiveUserDialogFragment();
|
LiveUserDialogFragment fragment = new LiveUserDialogFragment();
|
||||||
Bundle bundle = new Bundle();
|
Bundle bundle = new Bundle();
|
||||||
bundle.putString(Constants.LIVE_UID, mLiveUid);
|
bundle.putString(Constants.LIVE_UID, mLiveUid);
|
||||||
@ -4094,6 +4129,12 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onBannerClick(List datas, int p) {
|
public void onBannerClick(List datas, int p) {
|
||||||
|
if (TextUtils.equals("特惠首充", mBannerList4.get(p).getName())){
|
||||||
|
|
||||||
|
Map<String, String> map_ekv = new HashMap<String, String>();
|
||||||
|
map_ekv.put("link", mBannerList4.get(p).getLink());
|
||||||
|
MobclickAgent.onEvent(mContext, "live_room_first_charge", map_ekv);
|
||||||
|
}
|
||||||
Log.i("debug", "onBannerClick: " + mBannerList4.get(p).toString());
|
Log.i("debug", "onBannerClick: " + mBannerList4.get(p).toString());
|
||||||
BannerBean bean = mBannerList4.get(p);
|
BannerBean bean = mBannerList4.get(p);
|
||||||
if (showLoadingDialog()) {
|
if (showLoadingDialog()) {
|
||||||
@ -5218,6 +5259,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
public void onBannerClick(List datas, int position) {
|
public void onBannerClick(List datas, int position) {
|
||||||
if (datas.size() > 0 && mTopBannerList != null && mTopBannerList.size() > 0) {
|
if (datas.size() > 0 && mTopBannerList != null && mTopBannerList.size() > 0) {
|
||||||
if (mTopBannerList.get(position).getType() == TopBannerCustomViewHolder.TYPE_CALL_ANCHOR) {
|
if (mTopBannerList.get(position).getType() == TopBannerCustomViewHolder.TYPE_CALL_ANCHOR) {
|
||||||
|
MobclickAgent.onEvent(mContext, "live_room_contact", "联系方式按钮");
|
||||||
Dialog loading = DialogUitl.loadingDialog(mContext);
|
Dialog loading = DialogUitl.loadingDialog(mContext);
|
||||||
loading.show();
|
loading.show();
|
||||||
LiveNetManager.get(mContext)
|
LiveNetManager.get(mContext)
|
||||||
@ -5253,6 +5295,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
});
|
});
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
MobclickAgent.onEvent(mContext, "live_room_wish", "心愿单按钮");
|
||||||
BannerBean bean = mTopBannerList.get(position);
|
BannerBean bean = mTopBannerList.get(position);
|
||||||
IMLoginModel userInfo = IMLoginManager.get(mContext).getUserInfo();
|
IMLoginModel userInfo = IMLoginManager.get(mContext).getUserInfo();
|
||||||
String type = "";
|
String type = "";
|
||||||
@ -5298,6 +5341,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
position = 0;
|
position = 0;
|
||||||
}
|
}
|
||||||
if (mTopBannerList.get(position).getType() == TopBannerCustomViewHolder.TYPE_CALL_ANCHOR) {
|
if (mTopBannerList.get(position).getType() == TopBannerCustomViewHolder.TYPE_CALL_ANCHOR) {
|
||||||
|
MobclickAgent.onEvent(mContext, "live_room_contact", "联系方式按钮");
|
||||||
Dialog loading = DialogUitl.loadingDialog(mContext);
|
Dialog loading = DialogUitl.loadingDialog(mContext);
|
||||||
loading.show();
|
loading.show();
|
||||||
LiveNetManager.get(mContext)
|
LiveNetManager.get(mContext)
|
||||||
@ -5333,6 +5377,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
});
|
});
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
MobclickAgent.onEvent(mContext, "live_room_wish", "心愿单按钮");
|
||||||
BannerBean bean = mTopBannerList.get(position);
|
BannerBean bean = mTopBannerList.get(position);
|
||||||
IMLoginModel userInfo = IMLoginManager.get(mContext).getUserInfo();
|
IMLoginModel userInfo = IMLoginManager.get(mContext).getUserInfo();
|
||||||
String type = "";
|
String type = "";
|
||||||
|
@ -29,6 +29,7 @@ import com.blankj.utilcode.util.GsonUtils;
|
|||||||
import com.lzf.easyfloat.EasyFloat;
|
import com.lzf.easyfloat.EasyFloat;
|
||||||
import com.lzf.easyfloat.permission.PermissionUtils;
|
import com.lzf.easyfloat.permission.PermissionUtils;
|
||||||
import com.lzf.easyfloat.utils.LifecycleUtils;
|
import com.lzf.easyfloat.utils.LifecycleUtils;
|
||||||
|
import com.umeng.analytics.MobclickAgent;
|
||||||
import com.yunbao.common.CommonAppConfig;
|
import com.yunbao.common.CommonAppConfig;
|
||||||
import com.yunbao.common.CommonAppContext;
|
import com.yunbao.common.CommonAppContext;
|
||||||
import com.yunbao.common.Constants;
|
import com.yunbao.common.Constants;
|
||||||
@ -1831,6 +1832,7 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
|
|||||||
*/
|
*/
|
||||||
public void light() {
|
public void light() {
|
||||||
if (!mLighted) {
|
if (!mLighted) {
|
||||||
|
MobclickAgent.onEvent(mContext, "live_room_light", "直播间点亮");
|
||||||
mLighted = true;
|
mLighted = true;
|
||||||
int guardType = mLiveGuardInfo != null ? mLiveGuardInfo.getMyGuardType() : Constants.GUARD_TYPE_NONE;
|
int guardType = mLiveGuardInfo != null ? mLiveGuardInfo.getMyGuardType() : Constants.GUARD_TYPE_NONE;
|
||||||
SocketRyChatUtil.sendLightMessage(mLiveBean.getUid(), 1 + RandomUtil.nextInt(6), guardType);
|
SocketRyChatUtil.sendLightMessage(mLiveBean.getUid(), 1 + RandomUtil.nextInt(6), guardType);
|
||||||
|
@ -453,6 +453,7 @@ public class MainActivity extends AbsActivity implements MainAppBarLayoutListene
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onNext(Unit unit) {
|
public void onNext(Unit unit) {
|
||||||
|
MobclickAgent.onEvent(mContext, "home_page_to_recommend", "首页点击右下角去推荐直播间按钮");
|
||||||
String Uid = floatBanner.getUid();
|
String Uid = floatBanner.getUid();
|
||||||
LiveHttpUtil.getLiveInfo(Uid + "", new HttpCallback() {
|
LiveHttpUtil.getLiveInfo(Uid + "", new HttpCallback() {
|
||||||
@Override
|
@Override
|
||||||
@ -1453,6 +1454,7 @@ public class MainActivity extends AbsActivity implements MainAppBarLayoutListene
|
|||||||
title.setImageResource(R.mipmap.icon_red_packet_float_text_en);
|
title.setImageResource(R.mipmap.icon_red_packet_float_text_en);
|
||||||
}
|
}
|
||||||
floatRedPacket.setOnClickListener(v -> {
|
floatRedPacket.setOnClickListener(v -> {
|
||||||
|
MobclickAgent.onEvent(mContext, "home_page_to_redpk", "首页点击右下角去红包专区");
|
||||||
mainHomeViewHolder.setCurPosition(3);
|
mainHomeViewHolder.setCurPosition(3);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -101,7 +101,6 @@ public class MainListActivity extends AbsActivity implements OnItemClickListener
|
|||||||
@Override
|
@Override
|
||||||
protected void onResume() {
|
protected void onResume() {
|
||||||
super.onResume();
|
super.onResume();
|
||||||
MobclickAgent.onPageStart("MainListActivity");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -313,7 +312,6 @@ public class MainListActivity extends AbsActivity implements OnItemClickListener
|
|||||||
@Override
|
@Override
|
||||||
protected void onPause() {
|
protected void onPause() {
|
||||||
super.onPause();
|
super.onPause();
|
||||||
MobclickAgent.onPageEnd("MainListActivity");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -19,6 +19,7 @@ import com.alibaba.android.arouter.facade.annotation.Route;
|
|||||||
import com.android.billingclient.api.BillingResult;
|
import com.android.billingclient.api.BillingResult;
|
||||||
import com.android.billingclient.api.Purchase;
|
import com.android.billingclient.api.Purchase;
|
||||||
import com.android.billingclient.api.PurchasesResponseListener;
|
import com.android.billingclient.api.PurchasesResponseListener;
|
||||||
|
import com.umeng.analytics.MobclickAgent;
|
||||||
import com.yunbao.common.CommonAppConfig;
|
import com.yunbao.common.CommonAppConfig;
|
||||||
import com.yunbao.common.activity.AbsActivity;
|
import com.yunbao.common.activity.AbsActivity;
|
||||||
import com.yunbao.common.fragment.LoadingDialog;
|
import com.yunbao.common.fragment.LoadingDialog;
|
||||||
@ -162,6 +163,13 @@ public class MyWalletActivity extends AbsActivity {
|
|||||||
@Override
|
@Override
|
||||||
public void onClick(View view) {
|
public void onClick(View view) {
|
||||||
vp_content.setCurrentItem(index);
|
vp_content.setCurrentItem(index);
|
||||||
|
if (index==0){
|
||||||
|
MobclickAgent.onEvent(mContext, "recharge_zs", "用户在充值页面选择左右切换到钻石或者点到钻石");
|
||||||
|
}else if (index==1){
|
||||||
|
MobclickAgent.onEvent(mContext, "recharge_xb", "用户在充值页面选择左右切换到星币或者点到星币");
|
||||||
|
}else if (index==2){
|
||||||
|
MobclickAgent.onEvent(mContext, "recharge_jd", "用户在充值页面选择左右切换到金豆或者点到金豆");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
return colorTransitionPagerTitleView;
|
return colorTransitionPagerTitleView;
|
||||||
|
@ -599,4 +599,10 @@ public class MyWebViewActivity extends AbsActivity {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void onPause() {
|
||||||
|
super.onPause();
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -224,12 +224,10 @@ public class SearchActivity extends AbsActivity {
|
|||||||
@Override
|
@Override
|
||||||
protected void onPause() {
|
protected void onPause() {
|
||||||
super.onPause();
|
super.onPause();
|
||||||
MobclickAgent.onPageEnd("SearchActivity");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onResume() {
|
protected void onResume() {
|
||||||
super.onResume();
|
super.onResume();
|
||||||
MobclickAgent.onPageStart("SearchActivity");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -17,6 +17,7 @@ import android.widget.LinearLayout;
|
|||||||
|
|
||||||
import com.alibaba.fastjson.JSON;
|
import com.alibaba.fastjson.JSON;
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
|
import com.umeng.analytics.MobclickAgent;
|
||||||
import com.yunbao.common.CommonAppConfig;
|
import com.yunbao.common.CommonAppConfig;
|
||||||
import com.yunbao.common.CommonAppContext;
|
import com.yunbao.common.CommonAppContext;
|
||||||
import com.yunbao.common.Constants;
|
import com.yunbao.common.Constants;
|
||||||
@ -268,10 +269,12 @@ public class MainStartDialogFragment extends AbsDialogFragment implements View.O
|
|||||||
if (i == R.id.btn_close) {
|
if (i == R.id.btn_close) {
|
||||||
} else if (i == R.id.btn_live) {
|
} else if (i == R.id.btn_live) {
|
||||||
if (mCallback != null) {
|
if (mCallback != null) {
|
||||||
|
MobclickAgent.onEvent(mContext, "home_page_broadcast", "点击开播按钮");
|
||||||
mCallback.onLiveClick();
|
mCallback.onLiveClick();
|
||||||
}
|
}
|
||||||
} else if (i == R.id.btn_video) {
|
} else if (i == R.id.btn_video) {
|
||||||
if (mCallback != null) {
|
if (mCallback != null) {
|
||||||
|
MobclickAgent.onEvent(mContext, "home_page_post", "点击发动态按钮");
|
||||||
mCallback.onVideoClick();
|
mCallback.onVideoClick();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -452,7 +452,7 @@ public class MainHomeLiveViewHolder extends AbsMainHomeChildViewHolder implement
|
|||||||
|
|
||||||
Map<String, String> map_ekv = new HashMap<String, String>();
|
Map<String, String> map_ekv = new HashMap<String, String>();
|
||||||
map_ekv.put("link", link);
|
map_ekv.put("link", link);
|
||||||
MobclickAgent.onEvent(mContext, "ome_page_recommend_banner", map_ekv);
|
MobclickAgent.onEvent(mContext, "home_page_recommend_banner", map_ekv);
|
||||||
|
|
||||||
if (link.contains("http")) {
|
if (link.contains("http")) {
|
||||||
WebViewActivity.forward(mContext, link, true, false);
|
WebViewActivity.forward(mContext, link, true, false);
|
||||||
|
@ -27,6 +27,7 @@ import com.opensource.svgaplayer.SVGADrawable;
|
|||||||
import com.opensource.svgaplayer.SVGAImageView;
|
import com.opensource.svgaplayer.SVGAImageView;
|
||||||
import com.opensource.svgaplayer.SVGAParser;
|
import com.opensource.svgaplayer.SVGAParser;
|
||||||
import com.opensource.svgaplayer.SVGAVideoEntity;
|
import com.opensource.svgaplayer.SVGAVideoEntity;
|
||||||
|
import com.umeng.analytics.MobclickAgent;
|
||||||
import com.yunbao.common.CommonAppConfig;
|
import com.yunbao.common.CommonAppConfig;
|
||||||
import com.yunbao.common.CommonAppContext;
|
import com.yunbao.common.CommonAppContext;
|
||||||
import com.yunbao.common.Constants;
|
import com.yunbao.common.Constants;
|
||||||
@ -74,8 +75,10 @@ import org.greenrobot.eventbus.EventBus;
|
|||||||
import java.net.MalformedURLException;
|
import java.net.MalformedURLException;
|
||||||
import java.net.URL;
|
import java.net.URL;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Locale;
|
import java.util.Locale;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Created by cxf on 2018/9/22.
|
* Created by cxf on 2018/9/22.
|
||||||
@ -127,6 +130,7 @@ public class MainMeViewHolder extends AbsMainViewHolder implements OnItemClickLi
|
|||||||
ViewClicksAntiShake.clicksAntiShake(mAvatar, new ViewClicksAntiShake.ViewClicksCallBack() {
|
ViewClicksAntiShake.clicksAntiShake(mAvatar, new ViewClicksAntiShake.ViewClicksCallBack() {
|
||||||
@Override
|
@Override
|
||||||
public void onViewClicks() {
|
public void onViewClicks() {
|
||||||
|
MobclickAgent.onEvent(mContext, "my_avatar", "个人头像按钮");
|
||||||
RouteUtil.forwardUserHome(mContext, CommonAppConfig.getInstance().getUid(), 2);
|
RouteUtil.forwardUserHome(mContext, CommonAppConfig.getInstance().getUid(), 2);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -358,6 +362,7 @@ public class MainMeViewHolder extends AbsMainViewHolder implements OnItemClickLi
|
|||||||
tv_level.setOnClickListener(new View.OnClickListener() {
|
tv_level.setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View view) {
|
public void onClick(View view) {
|
||||||
|
MobclickAgent.onEvent(mContext, "my_top_level", "个人中心最上面的等级");
|
||||||
String url = CommonAppConfig.HOST + "/h5/Grade/index.html?" + "token=" + CommonAppConfig.getInstance().getToken() + "&uid=" + CommonAppConfig.getInstance().getUid() + "&for";
|
String url = CommonAppConfig.HOST + "/h5/Grade/index.html?" + "token=" + CommonAppConfig.getInstance().getToken() + "&uid=" + CommonAppConfig.getInstance().getUid() + "&for";
|
||||||
ZhuangBanActivity.forward(mContext, url);
|
ZhuangBanActivity.forward(mContext, url);
|
||||||
}
|
}
|
||||||
@ -373,6 +378,7 @@ public class MainMeViewHolder extends AbsMainViewHolder implements OnItemClickLi
|
|||||||
tv_level.setOnClickListener(new View.OnClickListener() {
|
tv_level.setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View view) {
|
public void onClick(View view) {
|
||||||
|
MobclickAgent.onEvent(mContext, "my_top_level", "个人中心最上面的等级");
|
||||||
String url = CommonAppConfig.HOST + "/h5/Grade/index.html?" + "token=" + CommonAppConfig.getInstance().getToken() + "&uid=" + CommonAppConfig.getInstance().getUid() + "&isZh=" + ((IMLoginManager.get(CommonAppContext.sInstance.getBaseContext()).getLocaleLanguage() == Locale.SIMPLIFIED_CHINESE) ? "1" : "0");
|
String url = CommonAppConfig.HOST + "/h5/Grade/index.html?" + "token=" + CommonAppConfig.getInstance().getToken() + "&uid=" + CommonAppConfig.getInstance().getUid() + "&isZh=" + ((IMLoginManager.get(CommonAppContext.sInstance.getBaseContext()).getLocaleLanguage() == Locale.SIMPLIFIED_CHINESE) ? "1" : "0");
|
||||||
ZhuangBanActivity.forward(mContext, url);
|
ZhuangBanActivity.forward(mContext, url);
|
||||||
}
|
}
|
||||||
@ -434,6 +440,7 @@ public class MainMeViewHolder extends AbsMainViewHolder implements OnItemClickLi
|
|||||||
forwardProfit();
|
forwardProfit();
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
|
MobclickAgent.onEvent(mContext, "my_wallet", "个人中心点钱包");
|
||||||
forwardCoin();
|
forwardCoin();
|
||||||
break;
|
break;
|
||||||
case 13:
|
case 13:
|
||||||
@ -443,6 +450,7 @@ public class MainMeViewHolder extends AbsMainViewHolder implements OnItemClickLi
|
|||||||
forwardMyVideo();
|
forwardMyVideo();
|
||||||
break;
|
break;
|
||||||
case 20:
|
case 20:
|
||||||
|
MobclickAgent.onEvent(mContext, "my_room", "个人中心点房间管理");
|
||||||
forwardRoomManage();
|
forwardRoomManage();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -453,22 +461,32 @@ public class MainMeViewHolder extends AbsMainViewHolder implements OnItemClickLi
|
|||||||
ThreeDistributActivity.forward(mContext, bean.getName(), url);
|
ThreeDistributActivity.forward(mContext, bean.getName(), url);
|
||||||
} else {
|
} else {
|
||||||
if (bean.getId() == 31) {
|
if (bean.getId() == 31) {
|
||||||
|
MobclickAgent.onEvent(mContext, "my_medal", "个人中心点勋章");
|
||||||
//跳转网页版粉丝徽章
|
//跳转网页版粉丝徽章
|
||||||
WebViewActivityMedal.forward(mContext, url);
|
WebViewActivityMedal.forward(mContext, url);
|
||||||
} else if (bean.getId() == 5) {
|
} else if (bean.getId() == 5) {
|
||||||
Constants.isTitle = true;
|
Constants.isTitle = true;
|
||||||
ZhuangBanActivity.forward(mContext, CommonAppConfig.HOST + "/h5/Personality.html");
|
ZhuangBanActivity.forward(mContext, CommonAppConfig.HOST + "/h5/Personality.html");
|
||||||
} else if (bean.getId() == 23) { //獎勵中心
|
} else if (bean.getId() == 23) { //獎勵中心
|
||||||
|
MobclickAgent.onEvent(mContext, "my_award", "獎勵中心");
|
||||||
Log.i("tsa", url);
|
Log.i("tsa", url);
|
||||||
RewardActivity.forward(mContext, url);
|
RewardActivity.forward(mContext, url);
|
||||||
} else if (bean.getId() == 4) {
|
} else if (bean.getId() == 4) {
|
||||||
|
|
||||||
url = HtmlConfig.SHOP + "?t=" + Math.random() + "&uid=" + CommonAppConfig.getInstance().getUid() + "&token=" + CommonAppConfig.getInstance().getToken() + "&isZh=" + ((IMLoginManager.get(mContext).getLocaleLanguage() == Locale.SIMPLIFIED_CHINESE) ? "1" : "0");
|
url = HtmlConfig.SHOP + "?t=" + Math.random() + "&uid=" + CommonAppConfig.getInstance().getUid() + "&token=" + CommonAppConfig.getInstance().getToken() + "&isZh=" + ((IMLoginManager.get(mContext).getLocaleLanguage() == Locale.SIMPLIFIED_CHINESE) ? "1" : "0");
|
||||||
WebViewActivity.forward(mContext, url, false);
|
WebViewActivity.forward(mContext, url, false);
|
||||||
} else if (bean.getId() == 3) {//我的等级
|
} else if (bean.getId() == 3) {//我的等级
|
||||||
|
MobclickAgent.onEvent(mContext, "my_level", "个人中心点我的等级");
|
||||||
Constants.myIntoIndex = 2;
|
Constants.myIntoIndex = 2;
|
||||||
Constants.isTitle = false;
|
Constants.isTitle = false;
|
||||||
ZhuangBanActivity.forward(mContext, url);
|
ZhuangBanActivity.forward(mContext, url);
|
||||||
} else {
|
} else {
|
||||||
|
if (bean.getId() == 11){
|
||||||
|
MobclickAgent.onEvent(mContext, "my_anchor", "个人中心点主播中心");
|
||||||
|
}
|
||||||
|
if (bean.getId() == 25){
|
||||||
|
MobclickAgent.onEvent(mContext, "my_friend_invitation", "个人中心点好友邀请");
|
||||||
|
}
|
||||||
WebViewActivity.forward(mContext, url, false);
|
WebViewActivity.forward(mContext, url, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -486,10 +504,17 @@ public class MainMeViewHolder extends AbsMainViewHolder implements OnItemClickLi
|
|||||||
} else if (i == R.id.signature) {
|
} else if (i == R.id.signature) {
|
||||||
mContext.startActivity(new Intent(mContext, EditProfileActivity.class));
|
mContext.startActivity(new Intent(mContext, EditProfileActivity.class));
|
||||||
} else if (i == R.id.lt_star_coin) {
|
} else if (i == R.id.lt_star_coin) {
|
||||||
|
Map<String, String> map_ekv = new HashMap<String, String>();
|
||||||
|
map_ekv.put("from", "xb");
|
||||||
|
MobclickAgent.onEvent(mContext, "my_recharge", map_ekv);
|
||||||
mContext.startActivity(new Intent(mContext, MyWalletActivity.class).putExtra("p", 1));
|
mContext.startActivity(new Intent(mContext, MyWalletActivity.class).putExtra("p", 1));
|
||||||
} else if (i == R.id.btn_coin) {
|
} else if (i == R.id.btn_coin) {
|
||||||
|
Map<String, String> map_ekv = new HashMap<String, String>();
|
||||||
|
map_ekv.put("from", "zs");
|
||||||
|
MobclickAgent.onEvent(mContext, "my_recharge", map_ekv);
|
||||||
mContext.startActivity(new Intent(mContext, MyWalletActivity.class).putExtra("p", 0));
|
mContext.startActivity(new Intent(mContext, MyWalletActivity.class).putExtra("p", 0));
|
||||||
} else if (i == R.id.btn_gold) {
|
} else if (i == R.id.btn_gold) {
|
||||||
|
MobclickAgent.onEvent(mContext, "my_receive", "充值旁边领取金豆的按钮");
|
||||||
// mContext.startActivity(new Intent(mContext, MyWalletActivity.class).putExtra("p", 2));
|
// mContext.startActivity(new Intent(mContext, MyWalletActivity.class).putExtra("p", 2));
|
||||||
String url = CommonAppConfig.HOST + "/index.php?g=Appapi&m=task&a=index";
|
String url = CommonAppConfig.HOST + "/index.php?g=Appapi&m=task&a=index";
|
||||||
RewardActivity.forward(mContext, url);
|
RewardActivity.forward(mContext, url);
|
||||||
@ -498,6 +523,7 @@ public class MainMeViewHolder extends AbsMainViewHolder implements OnItemClickLi
|
|||||||
} else if (i == R.id.rt_setting) {
|
} else if (i == R.id.rt_setting) {
|
||||||
forwardSetting();
|
forwardSetting();
|
||||||
} else if (i == R.id.lt_noble) {
|
} else if (i == R.id.lt_noble) {
|
||||||
|
MobclickAgent.onEvent(mContext, "my_noble", "个人中心点贵族");
|
||||||
Constants.isTitle = true;
|
Constants.isTitle = true;
|
||||||
UserBean u = CommonAppConfig.getInstance().getUserBean();
|
UserBean u = CommonAppConfig.getInstance().getUserBean();
|
||||||
String url = CommonAppConfig.HOST + "/h5/Noble/index.html?nickname=" + u.getUserNiceName() + "&usernobId=" + u.getNoble_id() + "&token=" + CommonAppConfig.getInstance().getToken() + "&uid=" + CommonAppConfig.getInstance().getUid();
|
String url = CommonAppConfig.HOST + "/h5/Noble/index.html?nickname=" + u.getUserNiceName() + "&usernobId=" + u.getNoble_id() + "&token=" + CommonAppConfig.getInstance().getToken() + "&uid=" + CommonAppConfig.getInstance().getUid();
|
||||||
@ -595,6 +621,11 @@ public class MainMeViewHolder extends AbsMainViewHolder implements OnItemClickLi
|
|||||||
Constants.isTitle = true;
|
Constants.isTitle = true;
|
||||||
String url = bean.getSlide_url() + "?uid=" + CommonAppConfig.getInstance().getUid() + "&token=" + CommonAppConfig.getInstance().getToken();
|
String url = bean.getSlide_url() + "?uid=" + CommonAppConfig.getInstance().getUid() + "&token=" + CommonAppConfig.getInstance().getToken();
|
||||||
WebViewActivity.forward(mContext, url, false, false);
|
WebViewActivity.forward(mContext, url, false, false);
|
||||||
|
|
||||||
|
Map<String, String> map_ekv = new HashMap<String, String>();
|
||||||
|
map_ekv.put("link", url);
|
||||||
|
MobclickAgent.onEvent(mContext, "my_banner", map_ekv);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -616,6 +647,11 @@ public class MainMeViewHolder extends AbsMainViewHolder implements OnItemClickLi
|
|||||||
Constants.isTitle = true;
|
Constants.isTitle = true;
|
||||||
String url = bean.getSlide_url() + "?uid=" + CommonAppConfig.getInstance().getUid() + "&token=" + CommonAppConfig.getInstance().getToken();
|
String url = bean.getSlide_url() + "?uid=" + CommonAppConfig.getInstance().getUid() + "&token=" + CommonAppConfig.getInstance().getToken();
|
||||||
RouteUtil.forwardCustomerService(url);
|
RouteUtil.forwardCustomerService(url);
|
||||||
|
|
||||||
|
Map<String, String> map_ekv = new HashMap<String, String>();
|
||||||
|
map_ekv.put("link", url);
|
||||||
|
MobclickAgent.onEvent(mContext, "my_banner", map_ekv);
|
||||||
|
|
||||||
/*if(bean.getSlide_id().equals("95")){
|
/*if(bean.getSlide_id().equals("95")){
|
||||||
RouteUtil.forwardCustomerService(url);
|
RouteUtil.forwardCustomerService(url);
|
||||||
}else {
|
}else {
|
||||||
|
@ -25,6 +25,7 @@ import com.opensource.svgaplayer.SVGADrawable;
|
|||||||
import com.opensource.svgaplayer.SVGAImageView;
|
import com.opensource.svgaplayer.SVGAImageView;
|
||||||
import com.opensource.svgaplayer.SVGAParser;
|
import com.opensource.svgaplayer.SVGAParser;
|
||||||
import com.opensource.svgaplayer.SVGAVideoEntity;
|
import com.opensource.svgaplayer.SVGAVideoEntity;
|
||||||
|
import com.umeng.analytics.MobclickAgent;
|
||||||
import com.yunbao.common.bean.ImUserInfoModel;
|
import com.yunbao.common.bean.ImUserInfoModel;
|
||||||
import com.yunbao.common.bean.LiveBean;
|
import com.yunbao.common.bean.LiveBean;
|
||||||
import com.yunbao.common.glide.ImgLoader;
|
import com.yunbao.common.glide.ImgLoader;
|
||||||
@ -233,6 +234,7 @@ public class MainMessageViewHolder extends AbsMainViewHolder {
|
|||||||
}
|
}
|
||||||
ImgLoader.display(mContext, userBean.getNewImage(), imgNewsNotice);
|
ImgLoader.display(mContext, userBean.getNewImage(), imgNewsNotice);
|
||||||
ViewClicksAntiShake.clicksAntiShake(imgNewsNotice, () -> {
|
ViewClicksAntiShake.clicksAntiShake(imgNewsNotice, () -> {
|
||||||
|
MobclickAgent.onEvent(mContext, "information_official_notice", "官方通知");
|
||||||
type = userBean.getType();
|
type = userBean.getType();
|
||||||
netHandler.post(systemNumberRunnable);
|
netHandler.post(systemNumberRunnable);
|
||||||
mContext.startActivity(new Intent(mContext, SystemMessageActivity.class)
|
mContext.startActivity(new Intent(mContext, SystemMessageActivity.class)
|
||||||
@ -252,6 +254,7 @@ public class MainMessageViewHolder extends AbsMainViewHolder {
|
|||||||
}
|
}
|
||||||
ImgLoader.display(mContext, userBean.getNewImage(), imgNewsInteraction);
|
ImgLoader.display(mContext, userBean.getNewImage(), imgNewsInteraction);
|
||||||
ViewClicksAntiShake.clicksAntiShake(imgNewsInteraction, () -> {
|
ViewClicksAntiShake.clicksAntiShake(imgNewsInteraction, () -> {
|
||||||
|
MobclickAgent.onEvent(mContext, "information_system_interactive", "互動消息");
|
||||||
type = userBean.getType();
|
type = userBean.getType();
|
||||||
netHandler.post(systemNumberRunnable);
|
netHandler.post(systemNumberRunnable);
|
||||||
mContext.startActivity(new Intent(mContext, SystemMessageActivity.class)
|
mContext.startActivity(new Intent(mContext, SystemMessageActivity.class)
|
||||||
@ -271,6 +274,7 @@ public class MainMessageViewHolder extends AbsMainViewHolder {
|
|||||||
}
|
}
|
||||||
ImgLoader.display(mContext, userBean.getNewImage(), imgNewsOnline);
|
ImgLoader.display(mContext, userBean.getNewImage(), imgNewsOnline);
|
||||||
ViewClicksAntiShake.clicksAntiShake(imgNewsOnline, () -> {
|
ViewClicksAntiShake.clicksAntiShake(imgNewsOnline, () -> {
|
||||||
|
MobclickAgent.onEvent(mContext, "information_system_service", "在線客服");
|
||||||
type = userBean.getType();
|
type = userBean.getType();
|
||||||
netHandler.post(systemNumberRunnable);
|
netHandler.post(systemNumberRunnable);
|
||||||
FirebaseAnalytics.getInstance(mContext).logEvent("FS_customer_service", null);
|
FirebaseAnalytics.getInstance(mContext).logEvent("FS_customer_service", null);
|
||||||
@ -297,6 +301,7 @@ public class MainMessageViewHolder extends AbsMainViewHolder {
|
|||||||
}
|
}
|
||||||
ImgLoader.display(mContext, userBean.getNewImage(), imgSystemMessages);
|
ImgLoader.display(mContext, userBean.getNewImage(), imgSystemMessages);
|
||||||
ViewClicksAntiShake.clicksAntiShake(imgSystemMessages, () -> {
|
ViewClicksAntiShake.clicksAntiShake(imgSystemMessages, () -> {
|
||||||
|
MobclickAgent.onEvent(mContext, "information_system_notice", "系统消息");
|
||||||
type = userBean.getType();
|
type = userBean.getType();
|
||||||
netHandler.post(systemNumberRunnable);
|
netHandler.post(systemNumberRunnable);
|
||||||
mContext.startActivity(new Intent(mContext, SystemMessageActivity.class)
|
mContext.startActivity(new Intent(mContext, SystemMessageActivity.class)
|
||||||
|
@ -9,6 +9,7 @@ import android.view.ViewGroup;
|
|||||||
import android.widget.RadioButton;
|
import android.widget.RadioButton;
|
||||||
import android.widget.RadioGroup;
|
import android.widget.RadioGroup;
|
||||||
|
|
||||||
|
import com.umeng.analytics.MobclickAgent;
|
||||||
import com.yunbao.common.Constants;
|
import com.yunbao.common.Constants;
|
||||||
import com.yunbao.common.activity.AbsActivity;
|
import com.yunbao.common.activity.AbsActivity;
|
||||||
import com.yunbao.common.adapter.ImChatFacePagerAdapter;
|
import com.yunbao.common.adapter.ImChatFacePagerAdapter;
|
||||||
@ -180,4 +181,14 @@ public abstract class AbsVideoCommentActivity extends AbsActivity implements Vie
|
|||||||
}
|
}
|
||||||
return super.dispatchTouchEvent(ev);
|
return super.dispatchTouchEvent(ev);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void onResume() {
|
||||||
|
super.onResume();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void onPause() {
|
||||||
|
super.onPause();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -9,6 +9,7 @@ import android.media.MediaMetadataRetriever;
|
|||||||
import android.text.TextUtils;
|
import android.text.TextUtils;
|
||||||
import android.view.WindowManager;
|
import android.view.WindowManager;
|
||||||
|
|
||||||
|
import com.umeng.analytics.MobclickAgent;
|
||||||
import com.yunbao.common.CommonAppConfig;
|
import com.yunbao.common.CommonAppConfig;
|
||||||
import com.yunbao.common.bean.ConfigBean;
|
import com.yunbao.common.bean.ConfigBean;
|
||||||
import com.yunbao.common.http.HttpCallback;
|
import com.yunbao.common.http.HttpCallback;
|
||||||
@ -253,4 +254,7 @@ public abstract class AbsVideoPlayActivity extends AbsVideoCommentActivity {
|
|||||||
public void setVideoScrollViewHolder(VideoScrollViewHolder videoScrollViewHolder) {
|
public void setVideoScrollViewHolder(VideoScrollViewHolder videoScrollViewHolder) {
|
||||||
mVideoScrollViewHolder = videoScrollViewHolder;
|
mVideoScrollViewHolder = videoScrollViewHolder;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -7,6 +7,7 @@ import androidx.recyclerview.widget.RecyclerView;
|
|||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.view.ViewGroup;
|
import android.view.ViewGroup;
|
||||||
|
|
||||||
|
import com.umeng.analytics.MobclickAgent;
|
||||||
import com.yunbao.common.event.FollowEvent;
|
import com.yunbao.common.event.FollowEvent;
|
||||||
import com.yunbao.common.views.AbsViewHolder;
|
import com.yunbao.common.views.AbsViewHolder;
|
||||||
import com.yunbao.video.R;
|
import com.yunbao.video.R;
|
||||||
@ -141,6 +142,7 @@ public class VideoScrollViewHolder extends AbsViewHolder implements
|
|||||||
@Override
|
@Override
|
||||||
public void onPageSelected(VideoPlayWrapViewHolder videoPlayWrapViewHolder, boolean needLoadMore) {
|
public void onPageSelected(VideoPlayWrapViewHolder videoPlayWrapViewHolder, boolean needLoadMore) {
|
||||||
if (videoPlayWrapViewHolder != null) {
|
if (videoPlayWrapViewHolder != null) {
|
||||||
|
MobclickAgent.onEvent(mContext, "community_video_slide", "社区视频上下滑动");
|
||||||
VideoBean videoBean = videoPlayWrapViewHolder.getVideoBean();
|
VideoBean videoBean = videoPlayWrapViewHolder.getVideoBean();
|
||||||
if (videoBean != null) {
|
if (videoBean != null) {
|
||||||
mVideoBean = videoBean;
|
mVideoBean = videoBean;
|
||||||
|
Loading…
Reference in New Issue
Block a user