Preserve changed groups when switching between apps