From 54892a227a77839ee81df90df904675f958831a3 Mon Sep 17 00:00:00 2001 From: Guillaume Jacquart Date: Mon, 23 Oct 2023 15:55:11 +0000 Subject: epic18: tracker control while tor is activated. --- .../trackers/service/TrackersServiceSupervisorImpl.kt | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'trackersservicee/src/main/java/foundation/e') diff --git a/trackersservicee/src/main/java/foundation/e/advancedprivacy/trackers/service/TrackersServiceSupervisorImpl.kt b/trackersservicee/src/main/java/foundation/e/advancedprivacy/trackers/service/TrackersServiceSupervisorImpl.kt index 3903db4..dcdf0d4 100644 --- a/trackersservicee/src/main/java/foundation/e/advancedprivacy/trackers/service/TrackersServiceSupervisorImpl.kt +++ b/trackersservicee/src/main/java/foundation/e/advancedprivacy/trackers/service/TrackersServiceSupervisorImpl.kt @@ -21,7 +21,9 @@ import android.content.Intent import foundation.e.advancedprivacy.trackers.domain.externalinterfaces.TrackersServiceSupervisor import foundation.e.advancedprivacy.trackers.service.TrackersService.Companion.ACTION_START import kotlinx.coroutines.isActive +import org.koin.core.module.dsl.bind import org.koin.core.module.dsl.factoryOf +import org.koin.core.module.dsl.singleOf import org.koin.dsl.module class TrackersServiceSupervisorImpl(private val context: Context) : TrackersServiceSupervisor { @@ -39,8 +41,13 @@ class TrackersServiceSupervisorImpl(private val context: Context) : TrackersServ override fun isRunning(): Boolean { return TrackersService.coroutineScope.isActive } + + override val dnsFilterForIpScrambling = null } val trackerServiceModule = module { factoryOf(::DNSBlocker) + singleOf(::TrackersServiceSupervisorImpl) { + bind() + } } -- cgit v1.2.1