File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
transport/transport-runtime/src/main/java/com/google/android/datatransport/runtime Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ public class TransportRuntime implements TransportInternal {
43
43
private final Clock uptimeClock ;
44
44
private final Scheduler scheduler ;
45
45
private final Uploader uploader ;
46
+ private final WorkInitializer initializer ;
46
47
47
48
@ Inject
48
49
TransportRuntime (
@@ -55,8 +56,7 @@ public class TransportRuntime implements TransportInternal {
55
56
this .uptimeClock = uptimeClock ;
56
57
this .scheduler = scheduler ;
57
58
this .uploader = uploader ;
58
-
59
- initializer .ensureContextsScheduled ();
59
+ this .initializer = initializer ;
60
60
}
61
61
62
62
/**
@@ -72,6 +72,7 @@ public static void initialize(Context applicationContext) {
72
72
DaggerTransportRuntimeComponent .builder ()
73
73
.setApplicationContext (applicationContext )
74
74
.build ();
75
+ instance .getTransportRuntime ().initializer .ensureContextsScheduled ();
75
76
}
76
77
}
77
78
}
You can’t perform that action at this time.
0 commit comments