Feature: add a isFinished boolean to filter out features from developer options screen.
This commit is contained in:
parent
aa57ec3ffb
commit
2c01d486e0
3 changed files with 23 additions and 5 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue