diff options
-rw-r--r-- | src/com/android/settings/cmstats/StatsUploadJobService.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/com/android/settings/cmstats/StatsUploadJobService.java b/src/com/android/settings/cmstats/StatsUploadJobService.java index c4b69ff..4533e28 100644 --- a/src/com/android/settings/cmstats/StatsUploadJobService.java +++ b/src/com/android/settings/cmstats/StatsUploadJobService.java @@ -64,6 +64,11 @@ public class StatsUploadJobService extends JobService { public boolean onStartJob(JobParameters jobParameters) { if (DEBUG) Log.d(TAG, "onStartJob() called with " + "jobParameters = [" + jobParameters + "]"); + + if (!Utilities.isStatsCollectionEnabled(this)) { + return false; + } + final StatsUploadTask uploadTask = new StatsUploadTask(jobParameters); mCurrentJobs.put(jobParameters, uploadTask); uploadTask.execute((Void) null); |