Skip to content

Commit

Permalink
Fix broken wakup timer preventing service restart per #154
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgyoung committed May 6, 2015
1 parent aef8a5f commit fcdc942
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,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 fcdc942

Please sign in to comment.