Bug fix

Separate work state in `static` cases, since it may not have been set
in MainActivity yet, and anyway it’s cleaner.