package com.fsck.k9.activity.misc;
import android.app.Activity;
import android.app.ProgressDialog;
import android.content.Context;
import android.os.AsyncTask;
/**
* Extends {@link AsyncTask} with methods to attach and detach an {@link Activity}.
*
*
* This is necessary to properly handle configuration changes that will restart an activity.
*
* Note:
* Implementing classes need to make sure they have no reference to the {@code Activity} instance
* that created the instance of that class. So if it's implemented as inner class, it needs to be
* {@code static}.
*
*
* @param
* see {@link AsyncTask}
* @param