Skip to content

Commit

Permalink
Merge pull request #1361 from OneSignal/fix/remove-double-delayMs
Browse files Browse the repository at this point in the history
Remove extra addition of delayMs
  • Loading branch information
nan-li committed Jun 16, 2021
2 parents bbd64c8 + 0949ccb commit 260097d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ private void scheduleSyncServiceAsAlarm(Context context, long delayMs) {
PendingIntent pendingIntent = syncServicePendingIntent(context);
AlarmManager alarm = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);
long triggerAtMs = OneSignal.getTime().getCurrentTimeMillis() + delayMs;
alarm.set(AlarmManager.RTC_WAKEUP, triggerAtMs + delayMs, pendingIntent);
alarm.set(AlarmManager.RTC_WAKEUP, triggerAtMs, pendingIntent);
}

protected void cancelBackgroundSyncTask(Context context) {
Expand Down

0 comments on commit 260097d

Please sign in to comment.