How do I disable the enabled feature when I enable a new feature in togglz? -
say have features a, b, c, , a enabled default. b , c disabled.
when enable b want disable a: 1 feature should enabled @ time.
you'll need implement custom version of staterepository interface. information on can found on togglz documentation
next override setfeaturestate(...) function required functionality.
- disable active features (query via featuremanager or feature enum - may need implement custom versions of these classes desired functionality)
- enable feature being set.
Comments
Post a Comment