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

Popular posts from this blog

python - jinja2: TemplateSyntaxError: expected token ',', got 'string' -

node.js - NodeJS remote terminal to Dropbear OpenWRT-Server -

Qt4: how to send QString inside a struct via QSharedMemory -