增加部分 MTA 统计
This commit is contained in:
@ -12,6 +12,7 @@ import android.view.ViewGroup;
|
||||
|
||||
import com.facebook.drawee.view.SimpleDraweeView;
|
||||
import com.gh.common.util.DataLogUtils;
|
||||
import com.gh.common.util.DataUtils;
|
||||
import com.gh.common.util.ImageUtils;
|
||||
import com.gh.common.util.NewsUtils;
|
||||
import com.gh.common.util.StringUtils;
|
||||
@ -37,13 +38,16 @@ public class ImagePagerAdapter extends RecyclingPagerAdapter {
|
||||
private int mSize;
|
||||
private boolean mIsInfiniteLoop;
|
||||
|
||||
private String mSource;
|
||||
|
||||
// private ImageIndicator indicator;
|
||||
|
||||
public ImagePagerAdapter(Context context, List<SlideEntity> slideEntityList, boolean isInfiniteLoop) {
|
||||
public ImagePagerAdapter(Context context, List<SlideEntity> slideEntityList, boolean isInfiniteLoop, String source) {
|
||||
mContext = context;
|
||||
mSlideEntityList = slideEntityList;
|
||||
mSize = getSize(slideEntityList);
|
||||
mIsInfiniteLoop = isInfiniteLoop;
|
||||
mSource= source;
|
||||
}
|
||||
|
||||
public int getSize(List<SlideEntity> sourceList) {
|
||||
@ -83,6 +87,8 @@ public class ImagePagerAdapter extends RecyclingPagerAdapter {
|
||||
, "=", String.valueOf(getPosition(position) + 1)
|
||||
, "])");
|
||||
|
||||
DataUtils.onMtaEvent(mContext, "轮播图", mSource, String.valueOf(position));
|
||||
|
||||
switch (slideEntity.getType()) {
|
||||
case "game":
|
||||
GameDetailActivity.startGameDetailActivity(mContext, slideEntity.getLink(), entrance);
|
||||
|
||||
Reference in New Issue
Block a user