`setTitle(title)` should not be called in every `case`. Since those cases set the `title` variable, you should call `setTitle(title)` once and for all after the switch.

Similarly, `showProgress(true)` and `showFooterLoadingCaches()` could probably be deferred until after the switch, with an early return or another way of signalling that we got into the `default` case (which looks suspicious to me anyway, since it gets a hardcoded string for the title, maybe it could be removed).