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

Commit c8aa0b49 authored by Ashish Sharma's avatar Ashish Sharma Committed by Android Git Automerger
Browse files

am 58100fb8: Merge "Do not allow 0 or smaller periodicity for syncs. b/9295383" into jb-mr2-dev

* commit '58100fb8':
  Do not allow 0 or smaller periodicity for syncs. b/9295383
parents 46ae4122 58100fb8
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1971,6 +1971,10 @@ public class SyncManager {
                for (int i = 0, N = info.periodicSyncs.size(); i < N; i++) {
                    final Bundle extras = info.periodicSyncs.get(i).first;
                    final Long periodInMillis = info.periodicSyncs.get(i).second * 1000;
                    // Skip if the period is invalid
                    if (periodInMillis <= 0) {
                        continue;
                    }
                    // find when this periodic sync was last scheduled to run
                    final long lastPollTimeAbsolute = status.getPeriodicSyncTime(i);