Skip to content

Commit

Permalink
Forgot one file :(
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnold Kessner authored and scottferg committed Mar 4, 2011
1 parent 1bb571c commit a852acd
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions src/com/ferg/awful/ThreadDisplayActivity.java
Expand Up @@ -28,7 +28,6 @@
package com.ferg.awful;

import java.util.ArrayList;
import java.util.List;

import android.app.Activity;
import android.app.AlertDialog;
Expand All @@ -42,17 +41,16 @@
import android.text.Html;
import android.text.method.LinkMovementMethod;
import android.util.Log;
import android.view.ContextMenu;
import android.view.ContextMenu.ContextMenuInfo;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.ContextMenu;
import android.view.ContextMenu.ContextMenuInfo;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView.AdapterContextMenuInfo;
import android.widget.ArrayAdapter;
import android.widget.EditText;
import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.ListAdapter;
Expand Down Expand Up @@ -518,6 +516,16 @@ public View getView(int aPosition, View aConvertView, ViewGroup aParent) {
viewHolder.postDate.setText("Posted on " + current.getDate());
viewHolder.postBody.setHtml(current.getContent());

// change background color of previously read posts

if (current.isPreviouslyRead()) {
if (current.isEven()) {
viewHolder.postBody .setBackgroundColor(Constants.READ_BACKGROUND_EVEN);
} else {
viewHolder.postBody.setBackgroundColor(Constants.READ_BACKGROUND_UNEVEN);
}
}

// TODO: Why is this crashing when using the cache? Seems to be gif related.
// Note: ImageDownloader changed since that todo was written; not sure if it's still an issue
// mImageDownloader.fetchDrawableOnThread(current.getAvatar(), viewHolder.avatar);
Expand Down

0 comments on commit a852acd

Please sign in to comment.