Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 70cec9f4 authored by Mohammed Althaf T's avatar Mohammed Althaf T 😊
Browse files

Updater: UpdatesCheckReceiver: Migrate to setRepeating

This reverts commit efc97fe7 ce02c5a1.

Change-Id: Id950e6c4f44a445f78be60416e159045d120152e
parent 752df4ef
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -160,8 +160,8 @@ public class UpdatesCheckReceiver extends BroadcastReceiver {

        PendingIntent updateCheckIntent = getRepeatingUpdatesCheckIntent(context);
        AlarmManager alarmMgr = context.getSystemService(AlarmManager.class);
        alarmMgr.setExactAndAllowWhileIdle(AlarmManager.RTC,
                System.currentTimeMillis() + Utils.getUpdateCheckInterval(context),
        alarmMgr.setRepeating(AlarmManager.RTC, System.currentTimeMillis() +
                Utils.getUpdateCheckInterval(context), Utils.getUpdateCheckInterval(context),
                updateCheckIntent);

        Date nextCheckDate = new Date(System.currentTimeMillis() +