The ProgressDialog class was deprecated in API 26, and should no longer be used. It's also no longer part of the AndroidX library, so its behavior on different platforms is pretty much undefined.
We should remove our usages of ProgressDialog, and replace it with ProgressBars in the user interface itself.