Skip to content

Commit

Permalink
test whether RTC_WAKEUP works during doze
Browse files Browse the repository at this point in the history
  • Loading branch information
smichel17 committed Sep 12, 2017
1 parent 7b112bb commit f813367
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class ScheduleReceiver : BroadcastReceiver() {

val pendingIntent = PendingIntent.getBroadcast(appContext, 0, command, 0)

AlarmManagerCompat.setExactAndAllowWhileIdle(alarmManager, AlarmManager.RTC,
AlarmManagerCompat.setExactAndAllowWhileIdle(alarmManager, AlarmManager.RTC_WAKEUP,
calendar.timeInMillis, pendingIntent)
} else {
Log.i("Tried to schedule alarm, but schedule is disabled.")
Expand Down

0 comments on commit f813367

Please sign in to comment.