Skip to content
This repository has been archived by the owner on Aug 26, 2019. It is now read-only.

Commit

Permalink
添加阅读信息获取
Browse files Browse the repository at this point in the history
  • Loading branch information
seven332 committed Jun 13, 2014
1 parent 78bcb03 commit 66e2727
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/com/hippo/ehviewer/ui/MangaDetailActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@

import java.util.List;

import com.google.analytics.tracking.android.EasyTracker;
import com.google.analytics.tracking.android.MapBuilder;
import com.hippo.ehviewer.AppContext;
import com.hippo.ehviewer.R;
import com.hippo.ehviewer.data.Comment;
Expand Down Expand Up @@ -112,6 +114,16 @@ private void handleIntent(Intent intent) {
} else {
mGalleryInfo = intent.getParcelableExtra(KEY_G_INFO);
}

if (Config.getAllowAnalyics()) {
EasyTracker easyTracker = EasyTracker.getInstance(this);
easyTracker.send(MapBuilder
.createEvent("detail",
"open",
"{\"gid\":" + mGalleryInfo.gid + ",\"token\":" + mGalleryInfo.token +"}",
null)
.build());
}
}

@Override
Expand Down

0 comments on commit 66e2727

Please sign in to comment.