@@ -258,6 +258,11 @@ private void enqueue(MethodCall call, MethodChannel.Result result) {
258
258
for (Map <String , String > file : files ) {
259
259
items .add (FileItem .fromJson (file ));
260
260
}
261
+ System .out .println ("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" );
262
+ System .out .println (items .size ());
263
+ System .out .println (earliestBeginDateString );
264
+ System .out .println (earliestBeginDate );
265
+ System .out .println ("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" );
261
266
262
267
WorkRequest request = buildRequest (new UploadTask (taskIdKey , url , method , items , headers , parameters ,
263
268
connectionTimeout , showNotification , false , tag , earliestBeginDate ));
@@ -349,7 +354,12 @@ private WorkRequest buildRequest(UploadTask task) {
349
354
String parametersJson = gson .toJson (task .getParameters ());
350
355
dataBuilder .putString (UploadWorker .ARG_DATA , parametersJson );
351
356
}
352
-
357
+ System .out .println ("bulidrequest!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" );
358
+ System .out .println (task .getEarliestBeginDate ());
359
+ System .out .println (task .getEarliestBeginDate ().getTime ());
360
+ System .out .println (task .getEarliestBeginDate ().getTime () - System .currentTimeMillis ());
361
+ System .out .println ("buildrequest!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" );
362
+
353
363
return new OneTimeWorkRequest .Builder (UploadWorker .class )
354
364
.setConstraints (new Constraints .Builder ().setRequiredNetworkType (NetworkType .CONNECTED ).build ()).addTag (TAG )
355
365
.setInitialDelay (task .getEarliestBeginDate ().getTime () - System .currentTimeMillis (), TimeUnit .MILLISECONDS )
0 commit comments