Skip to content

Commit

Permalink
Individual view dissapeares if milestone date/description
Browse files Browse the repository at this point in the history
  • Loading branch information
Motoaleks committed Jan 26, 2018
1 parent 8c0ed93 commit 2bcf70e
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,17 @@ private void updateMilestone(final Milestone milestone){
DateFormat sdf = SimpleDateFormat.getDateInstance();

if (milestone.getDueOn() != null){
milestoneDueTo.setVisibility(View.VISIBLE);
milestoneDueTo.setText(sdf.format(milestone.getDueOn()));
} else{
milestoneDueTo.setVisibility(View.GONE);
}

if (milestone.getDescription() != null){
milestoneDescription.setVisibility(View.VISIBLE);
milestoneDescription.setText(milestone.getDescription());
} else{
milestoneDescription.setVisibility(View.GONE);
}

int totalIssues = milestone.getClosedIssues() + milestone.getOpenIssues();
Expand Down

0 comments on commit 2bcf70e

Please sign in to comment.