summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorGuillaume Jacquart <guillaume.jacquart@hoodbrains.com>2023-10-23 15:55:11 +0000
committerGuillaume Jacquart <guillaume.jacquart@hoodbrains.com>2023-10-23 15:55:11 +0000
commit54892a227a77839ee81df90df904675f958831a3 (patch)
tree030ccbed3f44a2a1f96413947f50ec0520fb064d /core
parentd0c2b36ec81cd2a102d4b0a5b0fbeb1c1aa52e70 (diff)
epic18: tracker control while tor is activated.
Diffstat (limited to 'core')
-rw-r--r--core/src/main/java/foundation/e/advancedprivacy/domain/entities/FeatureServiceState.kt6
1 files changed, 5 insertions, 1 deletions
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
}