1
0
mirror of https://github.com/TwidereProject/Twidere-Android synced 2025-01-31 00:45:00 +01:00

made bug report works again

This commit is contained in:
Mariotaku Lee 2015-03-29 20:38:28 +08:00
parent fb3a2d1f8b
commit a51827701b
2 changed files with 21 additions and 13 deletions

View File

@ -459,13 +459,13 @@ public abstract class AbsStatusesFragment<Data> 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
}

View File

@ -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
}