OSDN Git Service

Fix for the missing sync bug
authorShreyas Basarge <snb@google.com>
Thu, 16 Jun 2016 10:54:35 +0000 (11:54 +0100)
committerShreyas Basarge <snb@google.com>
Thu, 16 Jun 2016 22:01:59 +0000 (23:01 +0100)
commitbd4c3ea7ae57f43dbaca6456f9a2853d2e7d827d
treed28d0985ce0746fe9c2403054aee864405d70e9a
parent82f2df610894c6e423311467943a37330dbaa66b
Fix for the missing sync bug

Cancel a job before re-scheduling it to avoid
the situation where a job could still be in
JobScheduler's pending queue.

Retry a sync even if it has specified the
do_not_retry extra if the sync failed due
to SyncAlreadyInProgress.

Bug: 27532761
Change-Id: Ia5d2b31fa4e44560a3f170a2bdbf53151bff7a20
services/core/java/com/android/server/content/SyncManager.java