Another attempt. Still doesn't work.

It appears there's no way to reliably change the visual state of the app
bar buttons.