Loading services/core/java/com/android/server/job/JobServiceContext.java +3 −2 Original line number Original line Diff line number Diff line Loading @@ -223,10 +223,11 @@ public class JobServiceContext extends IJobCallback.Stub implements ServiceConne * stop executing. * stop executing. */ */ JobStatus getRunningJob() { JobStatus getRunningJob() { final JobStatus job; synchronized (mLock) { synchronized (mLock) { return mRunningJob == null ? job = mRunningJob; null : new JobStatus(mRunningJob); } } return job == null ? null : new JobStatus(job); } } /** Called externally when a job that was scheduled for execution should be cancelled. */ /** Called externally when a job that was scheduled for execution should be cancelled. */ Loading Loading
services/core/java/com/android/server/job/JobServiceContext.java +3 −2 Original line number Original line Diff line number Diff line Loading @@ -223,10 +223,11 @@ public class JobServiceContext extends IJobCallback.Stub implements ServiceConne * stop executing. * stop executing. */ */ JobStatus getRunningJob() { JobStatus getRunningJob() { final JobStatus job; synchronized (mLock) { synchronized (mLock) { return mRunningJob == null ? job = mRunningJob; null : new JobStatus(mRunningJob); } } return job == null ? null : new JobStatus(job); } } /** Called externally when a job that was scheduled for execution should be cancelled. */ /** Called externally when a job that was scheduled for execution should be cancelled. */ Loading