I’ve seen similar issues to this before, and it’s because you have two id’s that share the same name.
The onRestoreInstanceState has performed the findViewById method and the first view to be found was not the ProgressView.
Double check that your application does not reuse the same ID in two different places