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_change_record_tag/src/main/java/com/example/util/simpletimetracker/feature_change_record_tag/interactor/ChangeRecordTagViewDataInteractor.kt
Copy file name to clipboardExpand all lines: features/feature_change_record_tag/src/main/java/com/example/util/simpletimetracker/feature_change_record_tag/view/ChangeRecordTagFragment.kt
Copy file name to clipboardExpand all lines: features/feature_change_record_tag/src/main/java/com/example/util/simpletimetracker/feature_change_record_tag/viewModel/ChangeRecordTagViewModel.kt
+16-4Lines changed: 16 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -120,7 +120,7 @@ class ChangeRecordTagViewModel @Inject constructor(
120
120
val valueState:LiveData<ChangeRecordTagValueViewData> by lazy {
Copy file name to clipboardExpand all lines: features/feature_notification/src/main/java/com/example/util/simpletimetracker/feature_notification/activitySwitch/interactor/GetNotificationActivitySwitchControlsInteractor.kt
Copy file name to clipboardExpand all lines: features/feature_statistics_detail/src/main/java/com/example/util/simpletimetracker/feature_statistics_detail/interactor/StatisticsDetailTagValueInteractor.kt
+11-10Lines changed: 11 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -40,15 +40,12 @@ class StatisticsDetailTagValueInteractor @Inject constructor(
Copy file name to clipboardExpand all lines: features/feature_statistics_detail/src/main/java/com/example/util/simpletimetracker/feature_statistics_detail/mapper/StatisticsDetailTagValuesViewDataMapper.kt
+8-1Lines changed: 8 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,7 @@ class StatisticsDetailTagValuesViewDataMapper @Inject constructor(
31
31
availableChartLengths:List<ChartLength>,
32
32
appliedChartLength:ChartLength,
33
33
chartMode:ChartMode,
34
+
valueSuffix:String,
34
35
useProportionalMinutes:Boolean,
35
36
showSeconds:Boolean,
36
37
isDarkTheme:Boolean,
@@ -71,9 +72,15 @@ class StatisticsDetailTagValuesViewDataMapper @Inject constructor(
71
72
)
72
73
73
74
if (chartData.visible) {
75
+
val mainHint = resourceRepo.getString(R.string.statistics_detail_tag_values_hint)
76
+
val hint =if (valueSuffix.isEmpty()) {
77
+
mainHint
78
+
} else {
79
+
"$mainHint ($valueSuffix)"
80
+
}
74
81
items +=StatisticsDetailHintViewData(
75
82
block =StatisticsDetailBlock.TagValuesHint,
76
-
text =resourceRepo.getString(R.string.statistics_detail_tag_values_hint),
Copy file name to clipboardExpand all lines: features/feature_statistics_detail/src/main/java/com/example/util/simpletimetracker/feature_statistics_detail/mapper/StatisticsDetailViewDataMapper.kt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -634,7 +634,7 @@ class StatisticsDetailViewDataMapper @Inject constructor(
634
634
val (legendSuffix, isMinutes) =when (chartMode) {
635
635
ChartMode.DURATIONS-> mapLegendSuffix(data)
636
636
ChartMode.COUNTS->"" to false
637
-
ChartMode.TAG_VALUE->"" to false// TODO TAG suffix?
0 commit comments