Skip to content

Commit

Permalink
make sure the notification state starts before NOW
Browse files Browse the repository at this point in the history
  • Loading branch information
newhinton committed Aug 31, 2024
1 parent 0ddd83c commit f4e2c7a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ open class Notifications(private var mContext: Context): DeterministicCalculatio
mDB.getKeywords().forEach {
if (toSearch.lowercase().contains(it.keyword.lowercase())) {
val state = VolumeState(it.volume)
state.startTime = System.currentTimeMillis()
state.endTime = state.startTime + 60*1000 // add a minute
state.startTime = System.currentTimeMillis() - 60*1000
state.endTime = state.startTime + 120*1000 // add a minute
state.setReason(Constants.REASON_NOTIFICATION_VISIBLE, "Keyword: ${it.keyword}")
return state
}
Expand Down

0 comments on commit f4e2c7a

Please sign in to comment.