fix of HistoryDatesRepositoryImpl logic

This commit is contained in:
InsanusMokrassar 2018-09-06 11:45:06 +08:00
parent a7cfaba837
commit 227ae86b98

View File

@ -20,8 +20,11 @@ abstract class HistoryDatesRepositoryImpl(
calculatePsychomatrixByDateUseCase.openPsychomatrixCreatedSubscription().subscribe {
it.date.also {
date ->
onDateCalculated(date)
dateAddedBroadcast.send(date)
date.withTime(0, 0, 0, 0).also {
dateWithoutTime ->
onDateCalculated(dateWithoutTime)
dateAddedBroadcast.send(dateWithoutTime)
}
}
}
}