From d59edaf0d5d3bce57d33ed8fda47918e637f59f6 Mon Sep 17 00:00:00 2001 From: Azalea Gui Date: Sun, 12 Feb 2023 22:45:39 -0500 Subject: [PATCH] [O] Make fields public --- app/src/main/java/org/hydev/wearsync/MyService.kt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/org/hydev/wearsync/MyService.kt b/app/src/main/java/org/hydev/wearsync/MyService.kt index 46d2432..c14c385 100644 --- a/app/src/main/java/org/hydev/wearsync/MyService.kt +++ b/app/src/main/java/org/hydev/wearsync/MyService.kt @@ -24,11 +24,12 @@ import java.util.concurrent.atomic.AtomicReference class MyService : Service() { - private lateinit var influx: Influx - private val bm by lazy { getSysServ() } + lateinit var influx: Influx - private val scope = CoroutineScope(SupervisorJob() + Dispatchers.IO) - private val count = AtomicLong() + val bm by lazy { getSysServ() } + + val scope = CoroutineScope(SupervisorJob() + Dispatchers.IO) + val count = AtomicLong() override fun onBind(intent: Intent?) = null override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int