Skip to content

Commit

Permalink
Merge pull request #6 from JasperEssien2/bugfix/back-time-triggers-alarm
Browse files Browse the repository at this point in the history
removed unnecessary logs
  • Loading branch information
JasperEssien2 authored Jul 21, 2022
2 parents ec78aa8 + c725792 commit 7fd5a36
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -292,14 +292,10 @@ data class AlarmConfig(

set(Calendar.SECOND, alarmSecond ?: 0)

Log.i("AlarmManagerHelper", "INstance of ${this.get(Calendar.DATE)}")

if(this <= Calendar.getInstance()){
// Add an additional day, if alarm is set before "now" time
// to prevent alarm from getting triggered
set(Calendar.DATE, this.get(Calendar.DATE) + 1)

Log.i("AlarmManagerHelper", "NEW DATE ${this.get(Calendar.DATE)}")
}


Expand Down

0 comments on commit 7fd5a36

Please sign in to comment.