Skip to content

Commit

Permalink
SyncService: revert use of WakeLockTrampoline
Browse files Browse the repository at this point in the history
  • Loading branch information
jamorham committed Dec 28, 2018
1 parent e00b3a9 commit 8f1a9bb
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@
import com.eveningoutpost.dexdrip.Models.JoH;
import com.eveningoutpost.dexdrip.Models.UserError.Log;
import com.eveningoutpost.dexdrip.UtilityModels.Constants;
import com.eveningoutpost.dexdrip.UtilityModels.UploaderTask;
import com.eveningoutpost.dexdrip.UtilityModels.Pref;
import com.eveningoutpost.dexdrip.utils.framework.WakeLockTrampoline;
import com.eveningoutpost.dexdrip.UtilityModels.UploaderTask;
import com.eveningoutpost.dexdrip.xdrip;

import static com.eveningoutpost.dexdrip.UtilityModels.Constants.SYNC_QUEUE_RETRY_ID;
Expand Down Expand Up @@ -47,8 +46,7 @@ public static void startSyncService(long delay) {
if (delay == 0) {
xdrip.getAppContext().startService(new Intent(xdrip.getAppContext(), SyncService.class));
} else {
// final PendingIntent serviceIntent = PendingIntent.getService(xdrip.getAppContext(), SYNC_QUEUE_RETRY_ID, new Intent(xdrip.getAppContext(), SyncService.class), PendingIntent.FLAG_CANCEL_CURRENT);
final PendingIntent serviceIntent = WakeLockTrampoline.getPendingIntent(SyncService.class, SYNC_QUEUE_RETRY_ID);
final PendingIntent serviceIntent = PendingIntent.getService(xdrip.getAppContext(), SYNC_QUEUE_RETRY_ID, new Intent(xdrip.getAppContext(), SyncService.class), PendingIntent.FLAG_CANCEL_CURRENT);
JoH.wakeUpIntent(xdrip.getAppContext(), delay, serviceIntent);
}
}
Expand Down

0 comments on commit 8f1a9bb

Please sign in to comment.