From a51827701bb737451316c2f02ddc54b9a7d35475 Mon Sep 17 00:00:00 2001 From: Mariotaku Lee Date: Sun, 29 Mar 2015 20:38:28 +0800 Subject: [PATCH] made bug report works again --- .../fragment/support/AbsStatusesFragment.java | 12 +++++----- .../fragment/support/StatusFragment.java | 22 +++++++++++++------ 2 files changed, 21 insertions(+), 13 deletions(-) diff --git a/twidere/src/main/java/org/mariotaku/twidere/fragment/support/AbsStatusesFragment.java b/twidere/src/main/java/org/mariotaku/twidere/fragment/support/AbsStatusesFragment.java index 4ab7dfe57..4f924c093 100644 --- a/twidere/src/main/java/org/mariotaku/twidere/fragment/support/AbsStatusesFragment.java +++ b/twidere/src/main/java/org/mariotaku/twidere/fragment/support/AbsStatusesFragment.java @@ -459,13 +459,13 @@ public abstract class AbsStatusesFragment extends BaseSupportFragment impl Utils.openMedia(getActivity(), status, media); //spice SpiceProfilingUtil.log(getActivity(), - status.id + ",Clicked," + status.account_id + "," + status.user_id + "," - + status.text_plain.length() + "," + media.media_url + "," - + TypeMappingUtil.getMediaType(media.type) + "," + status.timestamp); + status.id + ",Clicked," + status.account_id + "," + status.user_id + "," + status.text_plain.length() + + "," + media.media_url + "," + TypeMappingUtil.getMediaType(media.type) + + "," + mAdapter.isMediaPreviewEnabled() + "," + status.timestamp); SpiceProfilingUtil.profile(getActivity(), status.account_id, - status.id + ",Clicked," + status.account_id + "," + status.user_id + "," - + status.text_plain.length() + "," + media.media_url + "," - + TypeMappingUtil.getMediaType(media.type) + "," + status.timestamp); + status.id + ",Clicked," + status.account_id + "," + status.user_id + "," + status.text_plain.length() + + "," + media.media_url + "," + TypeMappingUtil.getMediaType(media.type) + + "," + mAdapter.isMediaPreviewEnabled() + "," + status.timestamp); //end } diff --git a/twidere/src/main/java/org/mariotaku/twidere/fragment/support/StatusFragment.java b/twidere/src/main/java/org/mariotaku/twidere/fragment/support/StatusFragment.java index 1eea5add8..63e3f2594 100644 --- a/twidere/src/main/java/org/mariotaku/twidere/fragment/support/StatusFragment.java +++ b/twidere/src/main/java/org/mariotaku/twidere/fragment/support/StatusFragment.java @@ -250,6 +250,14 @@ public class StatusFragment extends BaseSupportFragment final ParcelableStatus status = mStatusAdapter.getStatus(position); if (status == null) return; Utils.openMedia(getActivity(), status, media); + SpiceProfilingUtil.log(getActivity(), + status.id + ",Clicked," + status.account_id + "," + status.user_id + "," + status.text_plain.length() + + "," + media.media_url + "," + TypeMappingUtil.getMediaType(media.type) + + "," + mStatusAdapter.isMediaPreviewEnabled() + "," + status.timestamp); + SpiceProfilingUtil.profile(getActivity(), status.account_id, + status.id + ",Clicked," + status.account_id + "," + status.user_id + "," + status.text_plain.length() + + "," + media.media_url + "," + TypeMappingUtil.getMediaType(media.type) + + "," + mStatusAdapter.isMediaPreviewEnabled() + "," + status.timestamp); } @Override @@ -307,13 +315,13 @@ public class StatusFragment extends BaseSupportFragment Utils.openMediaDirectly(getActivity(), accountId, status, media, status.media); //spice SpiceProfilingUtil.log(getActivity(), - status.id + ",Clicked," + accountId + "," + status.user_id + "," - + status.text_plain.length() + "," + media.media_url + "," - + TypeMappingUtil.getMediaType(media.type) + "," + status.timestamp); - SpiceProfilingUtil.profile(getActivity(), accountId, - status.id + ",Clicked," + accountId + "," + status.user_id + "," - + status.text_plain.length() + "," + media.media_url + "," - + TypeMappingUtil.getMediaType(media.type) + "," + status.timestamp); + status.id + ",Clicked," + status.account_id + "," + status.user_id + "," + status.text_plain.length() + + "," + media.media_url + "," + TypeMappingUtil.getMediaType(media.type) + + "," + mStatusAdapter.isMediaPreviewEnabled() + "," + status.timestamp); + SpiceProfilingUtil.profile(getActivity(), status.account_id, + status.id + ",Clicked," + status.account_id + "," + status.user_id + "," + status.text_plain.length() + + "," + media.media_url + "," + TypeMappingUtil.getMediaType(media.type) + + "," + mStatusAdapter.isMediaPreviewEnabled() + "," + status.timestamp); //end }