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. --- .../e/advancedprivacy/domain/entities/FeatureServiceState.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'core/src') diff --git a/core/src/main/java/foundation/e/advancedprivacy/domain/entities/FeatureServiceState.kt b/core/src/main/java/foundation/e/advancedprivacy/domain/entities/FeatureServiceState.kt index 6bfecbb..f079c56 100644 --- a/core/src/main/java/foundation/e/advancedprivacy/domain/entities/FeatureServiceState.kt +++ b/core/src/main/java/foundation/e/advancedprivacy/domain/entities/FeatureServiceState.kt @@ -17,5 +17,9 @@ package foundation.e.advancedprivacy.domain.entities enum class FeatureServiceState { - OFF, ON, STARTING, STOPPING + OFF, ON, STARTING, STOPPING; + + val isChecked get() = this == ON || this == STARTING + + val isLoading get() = this == STARTING || this == STOPPING } -- cgit v1.2.1