You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: features/feature_statistics_detail/src/main/java/com/example/util/simpletimetracker/feature_statistics_detail/customView/SeriesCalendarView.kt
Copy file name to clipboardExpand all lines: features/feature_statistics_detail/src/main/java/com/example/util/simpletimetracker/feature_statistics_detail/interactor/StatisticsDetailStatsInteractor.kt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -118,7 +118,7 @@ class StatisticsDetailStatsInteractor @Inject constructor(
118
118
}
119
119
val recordsAllIcon =StatisticsDetailCardInternalViewData.Icon(
Copy file name to clipboardExpand all lines: features/feature_statistics_detail/src/main/java/com/example/util/simpletimetracker/feature_statistics_detail/interactor/StatisticsDetailStreaksInteractor.kt
+64-14Lines changed: 64 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -244,6 +244,7 @@ class StatisticsDetailStreaksInteractor @Inject constructor(
244
244
streaksGoal = streaksGoal,
245
245
goal = goal,
246
246
rangeLength = rangeLength,
247
+
calculateCalendar =true,
247
248
)
248
249
249
250
// If range is not all data - calculate current streak on all data.
@@ -259,6 +260,7 @@ class StatisticsDetailStreaksInteractor @Inject constructor(
259
260
streaksGoal = streaksGoal,
260
261
goal = goal,
261
262
rangeLength = rangeLength,
263
+
calculateCalendar =false,
262
264
).currentStreak
263
265
stats.copy(currentStreak = currentStreak)
264
266
}
@@ -285,6 +287,7 @@ class StatisticsDetailStreaksInteractor @Inject constructor(
285
287
streaksGoal:StreaksGoal,
286
288
goal:RecordTypeGoal?,
287
289
rangeLength:RangeLength,
290
+
calculateCalendar:Boolean,
288
291
): IntermediateData {
289
292
// If doesn't have a goal - count any duration.
290
293
val defaultGoalType =RecordTypeGoal.Type.Duration(1)
@@ -379,19 +382,29 @@ class StatisticsDetailStreaksInteractor @Inject constructor(
0 commit comments