Merge "Work on issue #62095840: NPE in JobParamteres in the background" into oc-dev

am: 1399d3abf5

Change-Id: I49169ce6f6559d9bfad36693b1582b2d810380b6
This commit is contained in:
Dianne Hackborn
2017-05-30 20:31:33 +00:00
committed by android-build-merger

View File

@@ -210,6 +210,9 @@ public abstract class JobServiceEngine {
* information.
*/
public void jobFinished(JobParameters params, boolean needsReschedule) {
if (params == null) {
throw new NullPointerException("params");
}
Message m = Message.obtain(mHandler, MSG_JOB_FINISHED, params);
m.arg2 = needsReschedule ? 1 : 0;
m.sendToTarget();