Prevent unnecessary setTextColor

This commit is contained in:
topjohnwu 2018-12-31 03:04:30 +08:00
parent a575180475
commit 570ecd9987

View File

@ -137,12 +137,6 @@ public class FlashActivity extends BaseActivity {
super(console, true); super(console, true);
} }
@Override
public void onBindViewHolder(@NonNull ViewHolder holder, int position) {
super.onBindViewHolder(holder, position);
holder.txt.setTextColor(white);
}
@Override @Override
protected int itemLayoutRes() { protected int itemLayoutRes() {
return R.layout.list_item_console; return R.layout.list_item_console;
@ -158,6 +152,7 @@ public class FlashActivity extends BaseActivity {
public ViewHolder(@NonNull View itemView) { public ViewHolder(@NonNull View itemView) {
super(itemView); super(itemView);
txt.setTextColor(white);
} }
@Override @Override