Loading packages/DocumentsUI/src/com/android/documentsui/services/FileOperationService.java +4 −2 Original line number Diff line number Diff line Loading @@ -95,7 +95,7 @@ public class FileOperationService extends Service implements Job.Listener { private NotificationManager mNotificationManager; @GuardedBy("mRunning") private Map<String, JobRecord> mRunning = new HashMap<>(); private final Map<String, JobRecord> mRunning = new HashMap<>(); private int mLastServiceId; Loading Loading @@ -176,8 +176,10 @@ public class FileOperationService extends Service implements Job.Listener { if (DEBUG) Log.d( TAG, "Scheduling job " + job.id + " to run in " + delay + " milliseconds."); ScheduledFuture<?> future = executor.schedule(job, delay, TimeUnit.MILLISECONDS); synchronized (mRunning) { mRunning.put(jobId, new JobRecord(job, future)); } } /** * Cancels the operation corresponding to job id, identified in "EXTRA_JOB_ID". Loading Loading
packages/DocumentsUI/src/com/android/documentsui/services/FileOperationService.java +4 −2 Original line number Diff line number Diff line Loading @@ -95,7 +95,7 @@ public class FileOperationService extends Service implements Job.Listener { private NotificationManager mNotificationManager; @GuardedBy("mRunning") private Map<String, JobRecord> mRunning = new HashMap<>(); private final Map<String, JobRecord> mRunning = new HashMap<>(); private int mLastServiceId; Loading Loading @@ -176,8 +176,10 @@ public class FileOperationService extends Service implements Job.Listener { if (DEBUG) Log.d( TAG, "Scheduling job " + job.id + " to run in " + delay + " milliseconds."); ScheduledFuture<?> future = executor.schedule(job, delay, TimeUnit.MILLISECONDS); synchronized (mRunning) { mRunning.put(jobId, new JobRecord(job, future)); } } /** * Cancels the operation corresponding to job id, identified in "EXTRA_JOB_ID". Loading