Skip to content

Commit

Permalink
Stop rendering blanks for grades that are 0
Browse files Browse the repository at this point in the history
  • Loading branch information
kvablack committed Nov 14, 2016
1 parent 743ba22 commit a809713
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,7 @@ public void onBindViewHolder(CategoryAdapter.ViewHolder viewHolder, int position
TextView assignmentText = (TextView) row.findViewById(R.id.text_assignment);
TextView gradeText = (TextView) row.findViewById(R.id.text_grade);
assignmentText.setText(assignment.title);
if(!assignment.pointsString().equals("0")) {
gradeText.setText(assignment.pointsString());
} else {
gradeText.setText(" ");
}
gradeText.setText(assignment.pointsString());
assignmentRow.addView(row);
viewHolder.assignmentTable.addView(assignmentRow);
}
Expand Down

0 comments on commit a809713

Please sign in to comment.