Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 005dddd2 authored by Rafael Tonholo's avatar Rafael Tonholo Committed by GitHub
Browse files

Merge pull request #9797 from wmontwe/feat-core-feature-flag-shorthand-checks

feat(core): add convenience methods to FeatureFlagResult
parents 84866a1f 3cb0c833
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -44,4 +44,9 @@ sealed interface FeatureFlagResult {

        return this
    }

    fun isEnabled(): Boolean = this is Enabled
    fun isDisabled(): Boolean = this is Disabled
    fun isUnavailable(): Boolean = this is Unavailable
    fun isDisabledOrUnavailable(): Boolean = this is Disabled || this is Unavailable
}