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: domain/src/main/java/com/example/util/simpletimetracker/domain/notifications/interactor/NotificationTypeInteractor.kt
Copy file name to clipboardExpand all lines: features/feature_notification/src/main/java/com/example/util/simpletimetracker/feature_notification/activitySwitch/interactor/GetNotificationActivitySwitchControlsInteractor.kt
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -38,6 +38,8 @@ class GetNotificationActivitySwitchControlsInteractor @Inject constructor(
Copy file name to clipboardExpand all lines: features/feature_notification/src/main/java/com/example/util/simpletimetracker/feature_notification/activitySwitch/manager/NotificationControlsManager.kt
Copy file name to clipboardExpand all lines: features/feature_notification/src/main/java/com/example/util/simpletimetracker/feature_notification/activitySwitch/manager/NotificationControlsParams.kt
Copy file name to clipboardExpand all lines: features/feature_notification/src/main/java/com/example/util/simpletimetracker/feature_notification/recevier/NotificationReceiver.kt
Copy file name to clipboardExpand all lines: features/feature_notification/src/main/java/com/example/util/simpletimetracker/feature_notification/recordType/controller/NotificationTypeBroadcastController.kt
+22Lines changed: 22 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -67,6 +67,28 @@ class NotificationTypeBroadcastController @Inject constructor(
Copy file name to clipboardExpand all lines: features/feature_notification/src/main/java/com/example/util/simpletimetracker/feature_notification/recordType/interactor/ActivityStartStopFromBroadcastInteractor.kt
Copy file name to clipboardExpand all lines: features/feature_notification/src/main/java/com/example/util/simpletimetracker/feature_notification/recordType/interactor/NotificationTypeInteractorImpl.kt
+13-2Lines changed: 13 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -56,11 +56,20 @@ class NotificationTypeInteractorImpl @Inject constructor(
56
56
typesShift:Int,
57
57
tagsShift:Int,
58
58
selectedTypeId:Long,
59
+
selectedTagId:Long,
60
+
autoCancel:Boolean,
59
61
) {
60
-
if (!prefsInteractor.getShowNotifications()) return
62
+
if (!prefsInteractor.getShowNotifications()) {
63
+
hide(typeId)
64
+
return
65
+
}
61
66
62
67
val recordType = recordTypeInteractor.get(typeId)
63
68
val runningRecord = runningRecordInteractor.get(typeId)
69
+
if (runningRecord ==null) {
70
+
hide(typeId)
71
+
return
72
+
}
64
73
val recordTags = recordTagInteractor.getAll()
65
74
val isDarkTheme = prefsInteractor.getDarkMode()
66
75
val useMilitaryTime = prefsInteractor.getUseMilitaryTimeFormat()
@@ -122,6 +131,8 @@ class NotificationTypeInteractorImpl @Inject constructor(
122
131
tags = viewedTags,
123
132
tagsShift = tagsShift,
124
133
selectedTypeId = selectedTypeId,
134
+
selectedTagId = selectedTagId,
135
+
autoCancel = autoCancel,
125
136
goals = goals,
126
137
allDailyCurrents = allDailyCurrents,
127
138
)
@@ -132,7 +143,7 @@ class NotificationTypeInteractorImpl @Inject constructor(
132
143
show(
133
144
recordType = recordType,
134
145
goal = goalTime,
135
-
runningRecord = runningRecord?:return,
146
+
runningRecord = runningRecord,
136
147
recordTags = recordTags.filter { it.id in runningRecord.tagIds },
0 commit comments