Rename colorLeft to filterMatchColor

Matches the id better
travisci
Floens 10 years ago
parent d29efb53ca
commit 78a84ea56a
  1. 10
      Clover/app/src/main/java/org/floens/chan/ui/cell/PostCell.java

@ -78,7 +78,7 @@ public class PostCell extends LinearLayout implements PostCellInterface, PostLin
private TextView replies; private TextView replies;
private ImageView options; private ImageView options;
private View divider; private View divider;
private View colorLeft; private View filterMatchColor;
private boolean commentClickable = false; private boolean commentClickable = false;
private CharSequence iconsSpannable; private CharSequence iconsSpannable;
@ -131,7 +131,7 @@ public class PostCell extends LinearLayout implements PostCellInterface, PostLin
replies = (TextView) findViewById(R.id.replies); replies = (TextView) findViewById(R.id.replies);
options = (ImageView) findViewById(R.id.options); options = (ImageView) findViewById(R.id.options);
divider = findViewById(R.id.divider); divider = findViewById(R.id.divider);
colorLeft = findViewById(R.id.filter_match_color); filterMatchColor = findViewById(R.id.filter_match_color);
int textSizeSp = Integer.parseInt(ChanSettings.fontSize.get()); int textSizeSp = Integer.parseInt(ChanSettings.fontSize.get());
paddingPx = dp(textSizeSp - 6); paddingPx = dp(textSizeSp - 6);
@ -285,10 +285,10 @@ public class PostCell extends LinearLayout implements PostCellInterface, PostLin
} }
if (post.filterHighlightedColor != 0) { if (post.filterHighlightedColor != 0) {
colorLeft.setVisibility(View.VISIBLE); filterMatchColor.setVisibility(View.VISIBLE);
colorLeft.setBackgroundColor(post.filterHighlightedColor); filterMatchColor.setBackgroundColor(post.filterHighlightedColor);
} else { } else {
colorLeft.setVisibility(View.GONE); filterMatchColor.setVisibility(View.GONE);
} }
if (post.hasImage) { if (post.hasImage) {

Loading…
Cancel
Save