Skip to content
This repository was archived by the owner on Dec 18, 2022. It is now read-only.

Commit d89a5c9

Browse files
committed
add constructor argument for utilizing new builder method for adding time to disable network delay
1 parent 91e4342 commit d89a5c9

File tree

1 file changed

+4
-0
lines changed
  • sampleapp/src/main/java/io/matthewnelson/sampleapp

1 file changed

+4
-0
lines changed

sampleapp/src/main/java/io/matthewnelson/sampleapp/App.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ class App: Application() {
159159
application: Application,
160160
serviceNotificationBuilder: ServiceNotification.Builder,
161161
backgroundManagerPolicy: BackgroundManager.Builder.Policy,
162+
disableNetworkDelay: Long,
162163
restartTimeDelay: Long,
163164
stopServiceTimeDelay: Long,
164165
stopServiceOnTaskRemoved: Boolean,
@@ -173,6 +174,7 @@ class App: Application() {
173174
geoipAssetPath = "common/geoip",
174175
geoip6AssetPath = "common/geoip6"
175176
)
177+
.addTimeToDisableNetworkDelay(disableNetworkDelay)
176178
.addTimeToRestartTorDelay(restartTimeDelay)
177179
.addTimeToStopServiceDelay(stopServiceTimeDelay)
178180
.disableStopServiceOnTaskRemoved(stopServiceOnTaskRemoved)
@@ -200,6 +202,7 @@ class App: Application() {
200202
this,
201203
serviceNotificationBuilder,
202204
generateBackgroundManagerPolicy(prefs),
205+
LibraryPrefs.getControllerDisableNetworkDelay(prefs),
203206
LibraryPrefs.getControllerRestartDelaySetting(prefs),
204207
stopTorDelaySettingAtAppStartup.toLong(),
205208
LibraryPrefs.getControllerDisableStopServiceOnTaskRemovedSetting(prefs),
@@ -224,6 +227,7 @@ class App: Application() {
224227
this,
225228
serviceNotificationBuilder,
226229
generateBackgroundManagerPolicy(prefs, BackgroundPolicy.RUN_IN_FOREGROUND, true),
230+
LibraryPrefs.getControllerDisableNetworkDelay(prefs),
227231
LibraryPrefs.getControllerRestartDelaySetting(prefs),
228232
stopTorDelaySettingAtAppStartup.toLong(),
229233
LibraryPrefs.getControllerDisableStopServiceOnTaskRemovedSetting(prefs),

0 commit comments

Comments
 (0)