Permalink
Browse files

Fixed ghost avatar bug

  • Loading branch information...
dbjorge committed Apr 4, 2011
1 parent 9769fad commit eb0d41f06f5760c2179b683913bb89a16bf2a55b
Showing with 7 additions and 0 deletions.
  1. +7 −0 src/com/ferg/awful/ThreadDisplayActivity.java
@@ -824,7 +824,14 @@ public void onClick(View v) {
viewHolder.postHead.setOnClickListener(listener);
viewHolder.postBody.setOnClickListener(listener);
+ if( current.getAvatar() == null ) {
+ viewHolder.avatar.setVisibility(View.INVISIBLE);
+ } else {
+ viewHolder.avatar.setVisibility(View.VISIBLE);
+ }
+
viewHolder.avatar.setTag(current.getAvatar());
+
return inflatedView;
}

0 comments on commit eb0d41f

Please sign in to comment.