Skip to content

Commit fb9331c

Browse files
committed
add untracked time hint
1 parent c9cad81 commit fb9331c

File tree

45 files changed

+279
-43
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+279
-43
lines changed

core/src/main/java/com/example/util/simpletimetracker/core/mapper/CategoryViewDataMapper.kt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,13 +192,17 @@ class CategoryViewDataMapper @Inject constructor(
192192

193193
fun mapToCategoriesFirstHint(): ViewHolderType {
194194
return HintBigViewData(
195-
text = resourceRepo.getString(R.string.categories_record_type_hint)
195+
text = resourceRepo.getString(R.string.categories_record_type_hint),
196+
infoIconVisible = true,
197+
closeIconVisible = false,
196198
)
197199
}
198200

199201
fun mapToTagsFirstHint(): ViewHolderType {
200202
return HintBigViewData(
201-
text = resourceRepo.getString(R.string.categories_record_hint)
203+
text = resourceRepo.getString(R.string.categories_record_hint),
204+
infoIconVisible = true,
205+
closeIconVisible = false,
202206
)
203207
}
204208

core/src/main/java/com/example/util/simpletimetracker/core/mapper/RecordViewDataMapper.kt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,16 @@ class RecordViewDataMapper @Inject constructor(
121121
fun mapToNoRecords(): ViewHolderType {
122122
return HintBigViewData(
123123
text = resourceRepo.getString(R.string.no_records_exist),
124+
infoIconVisible = true,
125+
closeIconVisible = false,
126+
)
127+
}
128+
129+
fun mapToUntrackedTimeHint(): ViewHolderType {
130+
return HintBigViewData(
131+
text = resourceRepo.getString(R.string.change_record_untracked_time_hint),
132+
infoIconVisible = false,
133+
closeIconVisible = true,
124134
)
125135
}
126136
}

core/src/main/res/values-ar/strings.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@
114114
<string name="change_record_adjust">تغيير</string>
115115
<string name="change_record_change_prev_record">تغيير وقت التتبع السابق أيضا</string>
116116
<string name="change_record_change_adjacent_records">تغيير وقت التتبع المحاذي أيضا</string>
117+
<string name="change_record_untracked_time_hint">الوقت غير المُتعقب هو الوقت الذي لم يتم فيه تعقب أي نشاط. يمكن تعطيله في الإعدادات</string>
117118

118119
<!-- Change record type -->
119120
<string name="change_record_type_archived">تم أرشفة النشاط</string>

core/src/main/res/values-ca/strings.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@
114114
<string name="change_record_adjust">Canvi</string>
115115
<string name="change_record_change_prev_record">També canvia el temps de l\'enregistrament anterior</string>
116116
<string name="change_record_change_adjacent_records">També canvia el temps dels enregistraments adjacents</string>
117+
<string name="change_record_untracked_time_hint">El temps sense seguiment és el temps en què no s\'ha fet el seguiment de cap activitat. Es pot desactivar a la configuració</string>
117118

118119
<!-- Change record type -->
119120
<string name="change_record_type_archived">Activitat arxivada</string>

core/src/main/res/values-de/strings.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@
114114
<string name="change_record_adjust">Ändern</string>
115115
<string name="change_record_change_prev_record">Ändern Sie auch die Zeit des vorherigen Datensatzes</string>
116116
<string name="change_record_change_adjacent_records">Ändern Sie auch die Zeit benachbarter Datensätze</string>
117+
<string name="change_record_untracked_time_hint">Die nicht erfasste Zeit ist die Zeit, in der keine Aktivität erfasst wurde. Es kann in den Einstellungen deaktiviert werden</string>
117118

118119
<!-- Change record type -->
119120
<string name="change_record_type_archived">Aktivität archiviert</string>

core/src/main/res/values-es/strings.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@
114114
<string name="change_record_adjust">Cambio</string>
115115
<string name="change_record_change_prev_record">También cambia el tiempo del registro anterior</string>
116116
<string name="change_record_change_adjacent_records">También cambia la hora de los registros adyacentes</string>
117+
<string name="change_record_untracked_time_hint">El tiempo sin seguimiento es el momento en el que no se realizó un seguimiento de ninguna actividad. Se puede desactivar en la configuración.</string>
117118

118119
<!-- Change record type -->
119120
<string name="change_record_type_archived">Actividad archivada</string>

core/src/main/res/values-fa/strings.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@
114114
<string name="change_record_adjust">تغییر</string>
115115
<string name="change_record_change_prev_record">همچنین زمان تاریخچه قبلی را تغییر دهید</string>
116116
<string name="change_record_change_adjacent_records">همچنین زمان تاریخچه های مجاور را تغییر دهید</string>
117+
<string name="change_record_untracked_time_hint">زمان ردیابی نشده زمانی است که هیچ فعالیتی ردیابی نشده است. در تنظیمات می توان آن را غیرفعال کرد</string>
117118

118119
<!-- Change record type -->
119120
<string name="change_record_type_archived">فعالیت بایگانی شد</string>

core/src/main/res/values-fr/strings.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@
114114
<string name="change_record_adjust">Changement</string>
115115
<string name="change_record_change_prev_record">Modifier également l\'heure de l\'enregistrement précédent</string>
116116
<string name="change_record_change_adjacent_records">Modifier également l\'heure des enregistrements adjacents</string>
117+
<string name="change_record_untracked_time_hint">Le temps non suivi est le temps pendant lequel aucune activité n\'a été suivie. Il peut être désactivé dans les paramètres</string>
117118

118119
<!-- Change record type -->
119120
<string name="change_record_type_archived">Activité archivée</string>

core/src/main/res/values-hi/strings.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@
114114
<string name="change_record_adjust">बदलना</string>
115115
<string name="change_record_change_prev_record">पिछले रिकॉर्ड का समय भी बदलें</string>
116116
<string name="change_record_change_adjacent_records">पास के रिकॉर्ड का समय भी बदलें</string>
117+
<string name="change_record_untracked_time_hint">अनट्रैक्ड टाइम वह समय है जब किसी भी गतिविधि को ट्रैक नहीं किया गया था। इसे सेटिंग्स में अक्षम किया जा सकता है</string>
117118

118119
<!-- Change record type -->
119120
<string name="change_record_type_archived">संग्रहीत गतिविधि</string>

core/src/main/res/values-in/strings.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@
114114
<string name="change_record_adjust">Mengubah</string>
115115
<string name="change_record_change_prev_record">Juga ubah waktu rekaman sebelumnya</string>
116116
<string name="change_record_change_adjacent_records">Juga ubah waktu catatan yang berdekatan</string>
117+
<string name="change_record_untracked_time_hint">Waktu yang tidak terlacak adalah waktu ketika tidak ada aktivitas yang terlacak. Itu dapat dinonaktifkan di pengaturan</string>
117118

118119
<!-- Change record type -->
119120
<string name="change_record_type_archived">Kegiatan dihapuskan</string>

0 commit comments

Comments
 (0)