Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

Commit

Permalink
Merge pull request #409 from cco3/fixup
Browse files Browse the repository at this point in the history
[android] Cleanup errs from debug output change
  • Loading branch information
mmocny committed May 28, 2015
2 parents 3ff9244 + ab8d768 commit 4ef9017
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -484,20 +484,17 @@ public View getView(int i, View view, ViewGroup viewGroup) {
PwsClient.UrlMetadata urlMetadata = mUrlToUrlMetadata.get(url);
// If the metadata exists
if (urlMetadata != null) {
Log.d(TAG, url + " Metadata not null1");
// Set the title text
titleTextView.setText(urlMetadata.title);
// Set the url text
//TODO: urlTextView.setText(urlMetadata.displayUrl);
urlTextView.setText(url);
urlTextView.setText(urlMetadata.displayUrl);
// Set the description text
descriptionTextView.setText(urlMetadata.description);
// Set the favicon image
iconImageView.setImageBitmap(urlMetadata.icon);
}
// If metadata does not yet exist
else {
Log.d(TAG, url + " Metadata null1");
// Clear the children views content (in case this is a recycled list item view)
titleTextView.setText("");
iconImageView.setImageDrawable(null);
Expand Down Expand Up @@ -561,7 +558,6 @@ private void updateDebugView(String url, View view) {
TextView rankView = (TextView) view.findViewById(R.id.metadata_debug_rank);
TextView pwsTripTimeView = (TextView) view.findViewById(R.id.metadata_debug_pws_trip_time);
if (metadata != null) {
Log.d(TAG, url + " Metadata not null2");
float rank = metadata.rank;
String rankString = getString(R.string.metadata_debug_rank_prefix)
+ new DecimalFormat("##.##").format(rank);
Expand Down

0 comments on commit 4ef9017

Please sign in to comment.