Created
November 13, 2015 16:37
-
-
Save moralez/293d3b9c015373cd5fce to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Date previousDate = null; | |
for (LovelyAppointment appointment : appointments) { | |
if (previousDate == null || | |
!DateUtils.isSameDay(previousDate, appointment.getDate()) { | |
previousDate = appointment.getDate(); | |
appointment.setIsHeader(true); | |
} else { | |
appointment.setIsHeader(false); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment