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

Commit 765a29e

Browse files
committed
add by lazy startup
1 parent 736eb8c commit 765a29e

File tree

1 file changed

+4
-1
lines changed
  • topl-service/src/main/java/io/matthewnelson/topl_service/service/components/binding

1 file changed

+4
-1
lines changed

topl-service/src/main/java/io/matthewnelson/topl_service/service/components/binding/BaseServiceBinder.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
package io.matthewnelson.topl_service.service.components.binding
6868

6969
import android.os.Binder
70+
import io.matthewnelson.topl_core.broadcaster.BroadcastLogger
7071
import io.matthewnelson.topl_service.service.BaseService
7172
import io.matthewnelson.topl_service.lifecycle.BackgroundManager
7273
import io.matthewnelson.topl_service.service.components.actions.ServiceActions
@@ -95,7 +96,9 @@ internal abstract class BaseServiceBinder(private val torService: BaseService):
9596
//////////////////////////////////////////
9697
/// BackgroundManager Policy Execution ///
9798
//////////////////////////////////////////
98-
private val bgMgrBroadcastLogger = torService.getBroadcastLogger(BackgroundManager::class.java)
99+
private val bgMgrBroadcastLogger: BroadcastLogger by lazy {
100+
torService.getBroadcastLogger(BackgroundManager::class.java)
101+
}
99102
private var backgroundPolicyExecutionJob: Job? = null
100103

101104
/**

0 commit comments

Comments
 (0)