Ensure activity is visible before starting progress dialog for syncing