commit | 1d3eb79e0c95b63b97b29dd55e73a0adb48667ba | [log] [tgz] |
---|---|---|
author | Rahul Ravikumar <rahulrav@google.com> | Thu Nov 05 21:27:42 2020 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Thu Nov 05 21:27:42 2020 +0000 |
tree | 38333c744d3d44b10b7b52ca052e27814e0150d5 | |
parent | 7ebb94558bf5db0958781c2a0c02a0064617e57c [diff] | |
parent | 0b954339f3eae239bed8e17b39ec2dca1ed5fdb8 [diff] |
Merge "Mark a transaction as successful when reconciling jobs." into androidx-master-dev
diff --git a/work/workmanager/src/main/java/androidx/work/impl/background/systemjob/SystemJobScheduler.java b/work/workmanager/src/main/java/androidx/work/impl/background/systemjob/SystemJobScheduler.java index 2428b9e..6e39078 100644 --- a/work/workmanager/src/main/java/androidx/work/impl/background/systemjob/SystemJobScheduler.java +++ b/work/workmanager/src/main/java/androidx/work/impl/background/systemjob/SystemJobScheduler.java
@@ -321,6 +321,7 @@ // observing scheduling limits this bit needs to be reset. workSpecDao.markWorkSpecScheduled(workSpecId, SCHEDULE_NOT_REQUESTED_YET); } + workDatabase.setTransactionSuccessful(); } finally { workDatabase.endTransaction(); }