We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent def275d commit a9e04c7Copy full SHA for a9e04c7
Common/src/mobile/java/tk/glucodata/data/HistoryRepository.kt
@@ -419,15 +419,15 @@ class HistoryRepository(context: Context = Applic.app) {
419
}
420
421
private fun mapReadings(readings: List<HistoryReading>): List<GlucosePoint> {
422
- return HistoryDisplayPolicy.coalesceDisplayReadings(readings).map { reading ->
+ return readings.map { reading ->
423
GlucosePoint(
424
value = reading.value,
425
time = formatTime(reading.timestamp),
426
timestamp = reading.timestamp,
427
rawValue = reading.rawValue,
428
rate = reading.rate
429
)
430
- }
+ }.distinctBy { it.timestamp }
431
432
433
private fun formatTime(timestamp: Long): String =
0 commit comments