Less partying.

Closes #233
multisite^2
Floens 8 years ago
parent 28edc2d0ba
commit ccb343c4dd
  1. 5
      Clover/app/src/main/java/org/floens/chan/ui/layout/ThreadListLayout.java
  2. 0
      Clover/app/src/main/res/drawable-hdpi/partyhat.png

@ -503,11 +503,12 @@ public class ThreadListLayout extends FrameLayout implements ReplyLayout.ReplyLa
View child = parent.getChildAt(i);
if (child instanceof PostCellInterface) {
PostCellInterface postView = (PostCellInterface) child;
if (postView.getPost().hasImage) {
Post post = postView.getPost();
if (post.isOP && post.hasImage) {
RecyclerView.LayoutParams params = (RecyclerView.LayoutParams) child.getLayoutParams();
int top = child.getTop() + params.topMargin;
int left = child.getLeft() + params.leftMargin;
c.drawBitmap(hat, left - parent.getPaddingLeft() - dp(40), top - dp(130) - parent.getPaddingTop() + toolbarHeight(), null);
c.drawBitmap(hat, left - parent.getPaddingLeft() - dp(25), top - dp(80) - parent.getPaddingTop() + toolbarHeight(), null);
}
}
}

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

Loading…
Cancel
Save