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 { calculatePsychomatrixByDateUseCase.openPsychomatrixCreatedSubscription().subscribe {
it.date.also { it.date.also {
date -> date ->
onDateCalculated(date) date.withTime(0, 0, 0, 0).also {
dateAddedBroadcast.send(date) dateWithoutTime ->
onDateCalculated(dateWithoutTime)
dateAddedBroadcast.send(dateWithoutTime)
}
} }
} }
} }