diff options
Diffstat (limited to 'core/src/main/java')
-rw-r--r-- | core/src/main/java/foundation/e/advancedprivacy/domain/entities/FeatureServiceState.kt | 6 |
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 } |