Modify activity group default state dynamically.