Feature: add a isFinished boolean to filter out features from developer options screen.

This commit is contained in:
Benoit Marty 2023-12-13 14:51:50 +01:00
parent aa57ec3ffb
commit 2c01d486e0
3 changed files with 23 additions and 5 deletions

View file

@ -75,10 +75,12 @@ class DeveloperSettingsPresenter @Inject constructor(
.collectAsState(initial = null)
LaunchedEffect(Unit) {
FeatureFlags.entries.forEach { feature ->
features[feature.key] = feature
enabledFeatures[feature.key] = featureFlagService.isFeatureEnabled(feature)
}
FeatureFlags.entries
.filter { it.isFinished.not() }
.forEach { feature ->
features[feature.key] = feature
enabledFeatures[feature.key] = featureFlagService.isFeatureEnabled(feature)
}
}
val featureUiModels = createUiModels(features, enabledFeatures)
val coroutineScope = rememberCoroutineScope()