Skip to content

Commit

Permalink
Merge pull request #177 from AltBeacon/fix-alarm-wakeup-times
Browse files Browse the repository at this point in the history
Fix broken wakeup timer preventing service restart
  • Loading branch information
davidgyoung committed May 16, 2015
2 parents fbfe4bb + fcdc942 commit 08f24cc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ protected void setWakeUpAlarm() {
intent.putExtra("wakeup", true);
cancelWakeUpAlarm();
mWakeUpOperation = PendingIntent.getBroadcast(mContext, 0, intent, PendingIntent.FLAG_CANCEL_CURRENT);
alarmManager.set(AlarmManager.ELAPSED_REALTIME_WAKEUP, System.currentTimeMillis() + milliseconds, mWakeUpOperation);
alarmManager.set(AlarmManager.RTC_WAKEUP, System.currentTimeMillis() + milliseconds, mWakeUpOperation);
LogManager.d(TAG, "Set a wakeup alarm to go off in %s ms: %s", milliseconds, mWakeUpOperation);
}

Expand Down

0 comments on commit 08f24cc

Please sign in to comment.