Fix up the annoying old-style progress dialog

The state was never handled correctly. Maybe that's why they
invented DialogFragment.